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

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -