tkazec / final--jquery-keystop

jQuery keystop event plugin.

Home Page:https://www.npmjs.com/package/jquery-keystop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Created in the heyday of jQuery, AJAX, and IE8, this microplugin was a convenient cross-browser way to improve UX. The final source code is preserved here, dedicated to the public domain under the CC0 1.0 license. – Teddy Cross

jQuery keystop event plugin. Triggers the "keystop" event once the user has ceased typing in an input for a specified period of time. https://www.npmjs.com/package/jquery-keystop


  • .keystop(handler, [delay]) or .on("keystop", [delay], handler) to bind.
    • The delay is specified in milliseconds and defaults to 500.
  • .keystop() or .trigger("keystop") to trigger.
  • .off("keystop") to unbind.
  • Works with jQuery 1.7 and up.
$("#search").keystop(function () {
	// Load and display search results via AJAX.
});

About

jQuery keystop event plugin.

https://www.npmjs.com/package/jquery-keystop

License:Creative Commons Zero v1.0 Universal


Languages

Language:JavaScript 100.0%