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  &copy; 2013</i></div>').trigger( "create" ); 

but doesn't work me.

see fiddle

 $('#homepage').append('<div data-role="footer" data-position="fixed"><i>copyright  &copy; 2013</i></div>').trigger( "pagecreate" ); 

i have used same code template of jquery website. css needs managed this.

edit pointed in below comment:

fiddle1


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -