javascript - How to dynamically add a navbar to a jQuery Mobile application -



javascript - How to dynamically add a navbar to a jQuery Mobile application -

how can dynamically add together navbar jquery mobile application? javascript want able add together navbar elements dom , have them parsed.

i found add together element dom wanted, , phone call .navbar() on element , perform navbar parsing.

for instance use

var mynavbar = $('div', { 'data-role':'navbar', 'html':'<ul><li><a id="some">first</a></li></ul>' }).appendto(mypage).navbar();

javascript jquery-mobile

Comments

Popular posts from this blog

ios - Fragment Shader GLSL for texture, color and texture/color -

iphone - Dismissing a UIAlertView -

java - Does anyone know the name of this "LookAndFeel"? -