jquery-keystop

1.2.0 • Public • Published

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.
});

Package Sidebar

Install

npm i jquery-keystop

Weekly Downloads

0

Version

1.2.0

License

CC0-1.0

Last publish

Collaborators

  • tkazec