Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
jQuery plugin to determine input into a HTML text field.
JavaScript
branch: master

This branch is 2 commits behind medihack:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
README.textile

README.textile

TypeWatch

A jQuery Plugin that allows to determine when a user has finished typing in a textbox.
First implementation by Denny Ferrassoli, original website: http://www.dennydotnet.com/post/TypeWatch-jQuery-Plugin.aspx

Usage

$('input.search').typeWatch()

There are a few configuration options:

  • callback – The function to callback after the user has “finished” typing. Default void.
  • wait – The number of milliseconds to wait before the plugin considers that typing has finished. Default 750.
  • highlight – Aesthetics, determines if the text should be highlighted when the textbox receives focus. Default true.
  • captureLength – The minimum amount of characters necessary before allowing the event to fire. Default 2.

Example with options:

$('input.search').typeWatch({
  callback: callbackFunction() {
    // do something here
  },
  wait: 500,
  highlight: false,
  captureLength: 1
})

License

Dual licensed under the MIT and GPL licenses.
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html

Something went wrong with that request. Please try again.