android - data role not apply to the items appended by javascript -
i working on android webview program , tried append list item dynamically page. however, data-role = "listview" not apply new ul list. please help. following javascript code.
$(document).on('pagebeforeshow', function () { var listposts = window.jsinterface.getpostvalue(); $('#postlist').append(listposts); }); following corresponding html code.
<div role="main" class="ui-content" id ="clientsdiv" style= "overflow: auto"> <ul data-role="listview" id="postlist"> </ul> </div><!-- /content -->
Comments
Post a Comment