微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

TypeWatch

程序名称:TypeWatch

授权协议: 未知

操作系统: 未知

开发语言:

TypeWatch 介绍

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@H_404_9@ event, instead the function is called
after the user has finished typing (or if the user stopped typing for #@H_404_9@
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 );

TypeWatch 官网

http://plugins.jquery.com/project/TypeWatch

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐