jquery mobile force ui-btn-active on navbar button

I am having a problem with jQuery mobile navigation (navbar). I have 4 pages and I've set the class="ui-btn-active" to a different one on each page.. For example: Page 1:
then if you go to page 2: Page 1: etc... My problem is that it's not always highlighting and sometimes I have to press the button 2 times for it to hightlight. Does anyone have a clue on how to force this to work?
For people that want to read the documentation on this feature: jquerymobile.com/test/docs/toolbars/footer-persist-a.html

以上就是jquery mobile force ui-btn-active on navbar button的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准