how to activate particular tab on the basis of previous page in second html page load

I have a pie chart. Functionality is that when I select a particular section of pie chart, then it redirects to the next page with selected tab. I am able to get value of that pie chart section by using this code: var search = document.URL.split('?')[1]; Now my fight is how to enable particular tab on the next page on the basis of value of "search" variable. Next when user comes direct to this page then 1st tab is enable by default. for this I used the code:
I have tried in many ways(like `$("ul.tabs li:first").addClass("active").show()` or `using eq()`) but have no success. Please let me know if anyone can help me out.
Could you post an HTML/JS example of how your tabs are defined?

以上就是how to activate particular tab on the basis of previous page in second html page load的详细内容,更多请关注web前端其它相关文章!

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

评论 抢沙发

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

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

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏