Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chalbert/jQuery-Clickout

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
7 Commits
 
 
 
 

Repository files navigation

jQuery-Clickout

jQuery plugin for to track clicks outside of an element.

This plugins does not stop propagation of events, compared to other similar solutions, which makes it absolutely safe to use.

$('.box').clickout(function(){...});

Also works with normal binding:

$('.box').on('clickout', function(){...});
// or
$('.box').bind('clickout', function(){...});

And to unbind

$('.box').off('clickout');
// or
$('.box').unbind('clickout');

This plugin implement the native jQuery.event.special.

Mobile support

In case of a touch device, the 'touchstart' event is used in place of 'click', as Webkit mobile doesn't register 'click' events on every element.

About

Plugin for 'click outside' event with mobile support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.