dynamically add footer or header in jquery mobile -
i want add footer dynamically in jquery mobile page..
<div data-role="page" id="homepage" data-theme="b" data-add-back-btn="true"> <div data-role="header"><h3></h3></div> <div data-role="content"> <ul data-role="listview" id="aaa"> </ul> </div>
the tried add footer dynamically..
$('#homepage').append('<div data-role="footer" data-position="fixed"><i>copyright © 2013</i></div>').trigger( "create" );
but doesn't work me.
see fiddle
$('#homepage').append('<div data-role="footer" data-position="fixed"><i>copyright © 2013</i></div>').trigger( "pagecreate" );
i have used same code template of jquery website. css needs managed this.
edit pointed in below comment:
Comments
Post a Comment