• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AJAX change class

#1
[eluser]stuffradio[/eluser]
Hi,

I am using AJAX for clicking on "tabs". When the tab is clicked on, how do I change the class of the item? When an item is active, the class of the list item is on.

Example:

Code:
<li id="item1" class="on">Item 1</li>
<li id="item2">Item 2</li>
<li id="item3">Item 3</li>

So how do I take the class off the previously on item, and change the one that was clicked? Any ideas?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.