Injected li items are not formatted with CSS style [closed]

Dynamically added listview elements must have its markup enhanced with this function: $(‘#listviewID’).listview(‘refresh’); Working example: http://jsfiddle.net/Gajotres/LrAyE/ In case you receive this error: cannot call methods on listview prior to initialization Then restyle your listview with this: $(‘#listviewID’).listview().listview(‘refresh’); First listview function will initialize listview and second one will restyle it. But do this ONLY if error … Read more