javascript - Bootstrap Tabs without allowing click -


I am using Bootstrap 3 tab to create wizards of the steps seen in the picture below.

Enter image details here

I click on the tab I'm trying to control it by not allowing it directly but only allows you to use the next / previous button

The issue is to issue an IA program to control tabs through tabs, Each link above requires a href value even if you consider the index; You can not leave empty.

  $ ('# myTab li: eq (2) a'). Tab ('show') // Select the third tab (0-indexed)   

How can I still control navigation using my button but to click on the tab Can not you allow?

  $ ('# myTab li: eq (2) a'). Click (function (e) {e.preventDefault ();});   

Create your link

  & lt; A href = "#" & gt; & Lt; / A & gt;   

In fact, it is not sure why you want to use an unreliable link at this point $ ('# myTab li a' ). Click (function (e) {e.preventDefault ();});

Take a note from Martin, we can kill all incidents and publicity.

  $ ('# myTab li a'). Click (function (e) {description is false;}); Chris Coars has a more detailed post on it:  

You should change the code instead of using jQuery to change it. You can have tabs on a regular list item and color active list items. The previous and next buttons should lead their users on the next tab in their own Seak. You can either use the browser URL or page variable so you know that your users are currently manipulating the tabbed process.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -