jQuery clickoutside event v1.0
With jQuery clickoutside event you can bind an event that will be triggered only when the user clicks outside the element in question. And because a reference to the clicked element is available as event.target you can change behavior based on what element is clicked.
This a fairly simple example of a jQuery “special event” plugin, so if you want to write one of your own, feel free to take a look at the fully commented source code. If you just want to, like, actually use the plugin, check out the project page!
- « Previous |
- Recent News |
- All News |
- Next »
Post A Comment
Please Donate!
Your generous donation encourages me to continue developing and updating my code!
All Featured Projects
jQuery: BBQ, Bookmarklet Generator, cond, doTimeout, equalizeBottoms, getObject, hashchange event, iff, longUrl, Message Queuing, Misc plugins, outside events, postMessage, replaceText, resize event, Star Wipe, throttle / debounce, Untils, unwrap, URL Utils, urlInternal
JavaScript: Battlelog Hacks, Bookmarklets, Debug, Emotify, Library Boilerplate, Linkify
Other: Finder Copy Open Window Paths, Multi-Firefox Launcher, Safari View Source in TextMate, Simple PHP Proxy, Simplified
a,b,i,br,p,strong,em,pre,code.<pre class="brush:js"></pre>(supported syntax highlighting brushes:
js,css,php,plain,bash,ruby,html,xml)<instead of<and>instead of>in the examples themselves.