Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 609 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 609 Bytes

A tiny jQuery plugin that adds a "keystop" event which triggers once the user has stopped typing in an input for a specified period of time.


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

© 2012 Teddy Cross, shared under the MIT.