View Single Post
Old 10-08-2012, 07:51 PM   PM User | #2
WolfShade
Regular Coder

 
Join Date: Apr 2012
Location: St. Louis, MO, USA
Posts: 946
Thanks: 7
Thanked 97 Times in 97 Posts
WolfShade is an unknown quantity at this point
You don't have to loop with jQuery. jQuery can make an array (or array-like object) based upon class name. Then you can use removeClass and addClass to alter the classes.

ie
Code:
$('.x')
will get you all elements that have 'x' as a class.

Code:
$('div.x')
will get you all DIVs that have 'x' as a class.
__________________
^_^

If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
*
The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

Last edited by WolfShade; 10-08-2012 at 07:53 PM..
WolfShade is offline   Reply With Quote