3 ms·
Just a very common use case for jQuery selectors is the :even and :odd extension, used to apply classes to table rows in order to alternate shading to make them
by pcthrowaway 12y ago
Just a very common use case for jQuery selectors is the :even and :odd extension, used to apply classes to table rows in order to alternate shading to make them easier to read.
- moron4hire 12y agoThat's pretty simple. You mentioned much, much more complex stuff.
- pcthrowaway 12y agoThere are many capabilities sizzle.js provides that go beyond CSS specifications (and also in some cases that are in the specification, but not yet implemented by browsers). Selectors can get pretty nasty, and having more flexibility available can help to make them more manageable. A lot of times you wouldn't want to use the more complex selectors, but it's certainly nice to have them.