• 0

css switching with JS


Question

Large

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 post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
Large

Its ok guys, I have sorted it, took me long enough but I got there in the end, phew ! :rofl:

Link to post
Share on other sites
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.