1 2 3
And now for raw power:
If you want to add or remove your own, you have to write that goodness, and here’s one implementation example for your sweet pleasure. Note that this implementation uses
classList first, which is a great feature to use if it’s available. As of this writing, IE still has some support problems. Thus, there’s also a fallback. You could also write your own classList shim if you’d like.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
1 2 3 4