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!
Post A Comment
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