Skip to content

Fammy/jquery.onidle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#jquery.onidle

What is it?

jquery.onidle is a jQuery plugin that allows you to execute a single function when a monitored series of events stop firing. For example, when a user stops typing in or leaves a textbox, fire off validation.

How to use it?

  1. Include jquery.onidle-1.0.0.min.js in your project. Bundling encouraged!
  2. Call the following code:
$(':text').onidle('focusout blur keyup change', 250, function(event) {
    // Only called once when events haven't fired for 250 milliseconds
	// The 'event' argument is the event object passed to the event that was fired.
});

Samples?

Yes, we have samples!

About

jQuery plugin to fire a single event after some idle period of inactivity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors