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
Post a Comment