#jquery.onidle
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.
- Include jquery.onidle-1.0.0.min.js in your project. Bundling encouraged!
- 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.
});Yes, we have samples!