Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

TypeWatch


Average rating
(4 votes)

Call a function when a user has changed the text within a textbox and after the user has stopped typing. Applies to any input textbox or textarea.

Note* This is not the OnChange event, instead the function is called after the user has finished typing (or if the user stopped typing for # amount of milliseconds) even if the textbox continues to have focus.

This can be used in conjunction with an AutoComplete box, so instead of firing an AJAX call every 500 ms, you can fire it once when they've stopped typing.

Example:

var options = {
    callback:function(){ alert("changed search text"); },
    wait:750,          // milliseconds
    highlight:true,     // highlight text on focus
    enterkey:true,     // allow "Enter" to submit data on INPUTs
}
$("#search").typeWatch( options );

Also works with multiple elements:

$(".textbox").typeWatch( options );

Releases

Official releasesDateSizeLinksStatus
2.0.02008-May-172.23 KBRecommended for 1.0.xThis is currently the recommended release for 1.0.x.
1.1.12007-Nov-02n/aRecommended for 1.1.xThis is currently the recommended release for 1.1.x.