I\'m trying to add list items to unordered lists in jquery mobile, but the formatting doesn\'t seem to be created properly.
You will have to add a class to the list tag
$('').append( $('- ').attr('class','ui-li ui-li-static ui-btn-up-c ui-li-last').append('hello')) ;
JQuery mobile automatically adds a class to the list items, which can be seen if you run your page in firefox and debug it using firebug. Select whatever class has been applied and add it to your dynamically generated li tag.