twitter-bootstrap-wizard
twitter-bootstrap-wizard copied to clipboard
how to return on current tab on form submit.
Hi all, may i know how to set the current tab on form submit?
After the submit event, you can navigate to any tab by calling the show function.
$('#wizard').bootstrapWizard('show', 3);
3 is the index of the tab which you want to show. 0 for the first tab.
$('#wizard').bootstrapWizard('show', 3); is it really works? in my case this didn't work(
And i try this variants (which didn't work too)
$('#rootwizard').bootstrapWizard('show', 2); $('#rootwizard').find("a[href*='tab3']").trigger('click'); $('#rootwizard').find("a[href*='tab3']").click();
HI DiegoWtf 👍 i used below method in Asp.net
var myHidden = document.getElementById('<%= TabName.ClientID %>').value; $('#rootwizard').bootstrapWizard('display', $(myHidden).val());
where tabname is the hiddenfield. and its working now.