On submitting the form by clicking a button, upon page reload same tab should be opened, but it is going to default tab. I have tried local storage but it doesn
Couple things to fix. .tab('show')
should be .show('tab')
I changed the show.bs.tab
to click
.
I made both divs display:none
to start.
And finally, I put an onload function to show the div that should be shown.
Somewhere Else