I have taken a good look and it does not appear that a jQuery selector can select all the elements that match certain sections Make such statements:
$ ('. MyClass', '.myOtherClass'). RemoveClass ('theclass');
Any ideas about how to achieve this? Only have to make other choices
$ ('. MyClass'). RemoveClass ('theclass'); $ ('MyOtherClass.') RemoveClass ('theclass').
But I am against it a lot so it requires a lot of codes.
This should work:
$ ('MyClass, .myOtherClass'). RemoveClass ('theclass');
You must add several selectors to $ () in the first argument, otherwise you are referring to jQuery, which is what you want.
This is what you will do in CSS.
Comments
Post a Comment