How do I add/remove elements in a jQuery Mobile navbar?
问题 In jQuery Mobile, lets say I have the following navigation bar: <div data-role="navbar"> <ul> <li><a id="item1">Item 1</a></li> <li><a id="item2">Item 2</a></li> <li><a id="item3">Item 3</a></li> </ul> </div> I can then just use jQuery to remove an item to make this look like: <div data-role="navbar"> <ul> <li><a id="item1">Item 1</a></li> <li><a id="item3">Item 3</a></li> </ul> </div> However, jQuery Mobile still renders it as if there are three tabs, and in the middle one, there is just