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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -