• 0

css switching with JS


Question

Hi Guys,

I hope you can help ? :unsure:

I have a table with 5 TD's set up like tabs, when you click a tab the css classname changes so that the tab is active or inactive, that i have managed with an onclick event.

But what i really need is a JS function that operates when you click a tab, swaps the current tab from inactive to active and swaps all the other tabs to inactive, each TD has a name cell1 through to cell5.

Can anyone help with a JS function to do this ?

Kind Regards

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.