Plugins

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.

jquery.escape


jQuery selectors are powerful and simple to use, until you have attribute
values (including ids and classes) that have funny characters. This plugin
adds a simple function $.escape that will escape any special characters.
For example if I have a string s that contains an id but I'm not sure that
all of the characters are safe I can use $('#'+$.escape(s)) to find the
element with that id. If I want to find all of the links to
http://ianloic.com/ I can do $('a[href='+$.escape('http://ianloic.com/')+']')

Downloads



5
Your rating: None Average: 5 (1 vote)