The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
moreSelectors for jQuery
The moreSelectors plugin gives us extra :selectors to use in our queries.
For example:
- $("DIV:color(red)") to match DIVs with red text. Handles #rrggbb and rgb(r,g,b) too.
- $("TD:colIndex(1)") to match table cells in column 1 (allowing for colSpans too).
- $("INPUT:modified") to match INPUTs that have been changed.
- $("FORM/*:blur") to match form element that last had the focus.
- $("DIV:parents(TD)") - Match DIVs that are inside table cells.
- $("DIV").attrs("id") - Return an array of IDs from all the DIVs.
- $("TH").filter({colSpan:2, title:"abc"}) - An enhancement to the .filter() method to optionally filter by attributes provided in {name:value} object notation
- ... and many more
Click the homepage link to download moreSelectors.js
