asp.net mvc - Jquerymobile autodividers using jquery ajax -


i using listview in jquerymobile. have ul tag , inserting list of li through ajax. want implement auto-divider in listview. how can that.

my code (html)

<ul id="guestlistview_guests" class="ul_guestlist"     data-role="listview"          data-theme="d">      </ul> 

i have tried it. did not work

 $('#guestlistview_guests').attr("data-autodividers", true);  $('#guestlistview_guests').listview('refresh'); 

you can specify data-autodividers = "true" statically in html code itself. if list empty not make difference. later after dynamically adding list items, .listview('refresh') or .listview('refresh',true)


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -