https://github.com/medihack/typewatch
jQuery plugin to determine input into a HTML text field.
https://github.com/medihack/typewatch
Last synced: 2 months ago
JSON representation
jQuery plugin to determine input into a HTML text field.
- Host: GitHub
- URL: https://github.com/medihack/typewatch
- Owner: medihack
- Created: 2011-02-07T10:34:45.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2013-07-25T09:33:13.000Z (over 12 years ago)
- Last Synced: 2025-02-01T04:04:55.014Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 74.2 KB
- Stars: 6
- Watchers: 1
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. 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
h3. 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
})
h3. License
Dual licensed under the MIT and GPL licenses.
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html