I am using bootstrap tabs functionality and I would like to implement the following features:
- Use mouseenter instead of click to toggle between tabs
- To prevent clicking action on links.
Here is my jsfiddle sample code. https://jsfiddle.net/irider89/bmLpwtqb/3/
$('.nav li a').hover(function (e) {
e.preventDefault()
$(this).tab('show');
});
$('.nav li a').click(function (e) {
return true;
});
How this could be achieved?
I need to be able click on mainmenu items (Home, Profile, Messages, Settings) and go to the specific url.
Use some new "data-" attribute to mention the url, like this below
and use the script like this