- Is there any better way to rewrite this:
- Can’t use removeClass(); as it would remove ALL classes, which we don’t want.1
- From removeClass(), the class parameter:
- One or more CSS classes to remove from the elements, these are separated by spaces.
- This is one of the solution :
- One or more CSS classes to remove from the elements, these are separated by spaces.
We can do this :
- class (Optional) String
- One or more CSS classes to remove from the elements, these are separated by spaces.
Example:
- Remove the class ‘blue’ and ‘under’ from the matched elements.
- Remove the class name “intro” from all ements:
[ad type=”banner”]