twitter-bootstrap-wizard icon indicating copy to clipboard operation
twitter-bootstrap-wizard copied to clipboard

how to return on current tab on form submit.

Open sachin0606 opened this issue 8 years ago • 3 comments

Hi all, may i know how to set the current tab on form submit?

sachin0606 avatar Jun 01 '16 04:06 sachin0606

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.

pa-ra-kram avatar Jun 27 '16 15:06 pa-ra-kram

$('#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();

DiegoWtf avatar Sep 29 '16 08:09 DiegoWtf

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.

sachin0606 avatar Sep 29 '16 11:09 sachin0606