I\'m trying to stay on a specif tab ( in this case tab2 ) but after clicking the submit button the tab reverts to tab 1 which has the default class of active. I have hit a b
It's so easy.
after submit your form you have to click on tab you want automatically.
first put Id in your tabs like this
and after that just use the Javascript before body close