android - listview('refresh') don't work -


I am developing an app using Phonegap for Android and JQuery. It works with db Sqlite.

When I add dynamically to the list view, CSS styles do not work properly. I have tried to use list visits ('refresh') in all possible ways, here my code Is:

  $ ("# nextDay"). Click (function () (if (opday & lt; 6) {opDay = opDay + 1; db.transaction (queryDB, errorCB); $ ('# schedule list') .html (data);} and {opDay = 1; db.transaction (queryDB, errorCB);} $ ('# schedule list'). Listview ('Refresh');}); Function querySuccess (tx, result) {// $ ('# schedule list'). Blank (); $ .Eye (result.ro, function) {var row = result.rows.item (index); $ ('# schedule list') .endend ('& lt; li id ​​= li' + [[[ Pair_id '] line [] +' & gt; & lt; a href = "#" & gt; & lt; h3 class = "ui-li-title" & gt; '+ line [' pair_name '] +' Lt; / h3 & gt; & lt; p class = "ui-lali-dave" & gt; '+ row [' teach_name '] + "," + row [' aud_num '] + "," + row [ Time '] +'   gt; & lt; / li & gt; ');}); $ ("# SheduleList") page () .; $ ('# SheduleList') list view () .; }   

Thanks for the help.

Dynamically call it for population after the container is added

Like

  $ ("# shedulelist"). Page ()    

Comments