Jquery – Twitter Bootstrap Tabs Prevent from jumping: Hi Friends, Today I will tell you how to stop or avoid jumping when any user click on the bootstrap tabs.
We have seen most of the time when any user click on the bootstrap nav-tabs then it goes on content of the tab or bottom of the tab, which is irrelevant and show a bad image of our website or a blog.
Few days back I have faced same problem in any website and plan to make a solution of it.
For solving the bootstrap tabs jumping problem, you have to follow some steps. These steps are
Open your code editor.
Paste the below code in any associated javascript file with your website.
$('.nav-tabs li a').click(function (e) { e.preventDefault(); $(this).tab('show'); }); |
$('.nav-tabs li a').click(function (e) { e.preventDefault(); $(this).tab('show'); });
After that run your website and check the tabs jumb or not.
I am sure your problem of avoiding the page jumb will solve. If you face problem now also, write comment to me.
Read About Other Interesting Things about jquery below.
I hope you will like Twitter Bootstrap Tabs Prevent from jumping using jquery. If You found it useful please subscribe my blog.
Categories: Website Design
Leave a Reply