I have the following code: http://jsfiddle.net/h6rQ2/2/
I’m using html to create a basic form. This form has two sections — each section is contained within a tab (tabs created with Twitter Bootstrap).
How do I create a “next” button which switches from the first tab to the second tab? When I try doing it right now, it only submits the form. Does Twitter Bootstrap already provide a function that lets you switch tabs via an external button? If so, how do you use it?
Given those buttons :
You’d need this JS :
Working demo (jsfiddle)