CSS and custom jQuery filter selectors

November 02, 2011

I’ve discovered a nice set of jQuery filter selectors.

Take this example of selecting the checked radio button in a group

Markup

Script

There are many many others, e.g. @contains, :disabled, :not(selector), :parent, :password, etc etc, more info in jQuery docs.