jquery - when another tab is selected ;preveously selected tab style is remaining activated -
I'm using simple tabs; Created using CSS.
I have an existing active tab. I am using jquery
$ ("tabs"). Click (function () {$ (this) .addClass ('current');});
This works fine but it does not remove the square from the first active tab. Please use
You can use the following code:
$ (". Tabs") (function () {$ (this) .addClass ('current'); $ (".tables"). ($ (This)). RemoveClass ('current';}) ;
Comments
Post a Comment