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.
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 comment
Share on other sites
1 answer to this question
Recommended Posts