TypeWatch

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-10 22:28:01

软件介绍

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 );

本文地址:https://codercto.com/soft/d/23110.html

jQuery 技术内幕

jQuery 技术内幕

高云 / 机械工业出版社 / 2014-1-1 / 99元

本书首先通过“总体架构”梳理了各个模块的分类、功能和依赖关系,让大家对jQuery的工作原理有大致的印象;进而通过“构造 jQuery 对象”章节分析了构造函数 jQuery() 的各种用法和内部构造过程;接着详细分析了底层支持模块的源码实现,包括:选择器 Sizzle、异步队列 Deferred、数据缓存 Data、队列 Queue、浏览器功能测试 Support;最后详细分析了功能模块的源码实......一起来看看 《jQuery 技术内幕》 这本书的介绍吧!

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具