Hi,
Can anyone suggest how I can remove all the css classes from an array
of elements except for one specific one (if it is set)?
I guess I could use erase('class') and then add the base class back in
however not all the elements have the base class.
Alternatively there is removeClass(_class name_) but the problem there
is that I don't know what classes the elements might have so I can't
get them by name.  (Note - I DO know the name of the base class that
must not be removed)

I have set up a mooshell test here but to be honest it contains little
code as I haven't got a semi-solution to show:
http://mootools.net/shell/w4fc5/

Thanks as always for any suggstions or solutions :)

Chris

Reply via email to