Selecting multiple classes with jQuery
Have you tried this?
$('.myClass, .myOtherClass').removeClass('theclass');
I use $('.myClass.myOtherClass').removeClass('theclass');
This should work:
$('.myClass, .myOtherClass').removeClass('theclass');
You must add the multiple selectors all in the first argument to $(), otherwise you are giving jQuery a context in which to search, which is not what you want.
It's the same as you would do in CSS.