🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

outclick is an ultra-light jQuery plugin (~2kb minified) which detects and executes a callback function when your user clicks outside of a given element.

Event callback Click

Documentation

Outclick

Trigger callback when user clicks somewhere outside defined element bounds

Usage

$('.selector1, .selector2').outclick(function() { alert('Clicked outside!') } 

You May Also Like