可能重复:
Detect all changes to a <input type=“text”> (immediately) using JQueryjQuery的模糊替代
我有一个用户输入数据和在onBlur事件它AJAX请求来验证他们已经输入的数据的文本框。如果验证,则按钮变为启用。然而,用户会感到困惑,他们必须在页面上的某个地方标出或点击该按钮才能启用。
是否有替代事件或方法来使用我正在使用的代码?
$('.serial').live('blur', function() {
//Do AJAX to validate
//If ok enable button
$('#button').attr("disabled", "");
});
所以很多重复,这么短的时间... ;-)这可能是最好的:http://stackoverflow.com/questions/1948332/detect-all-changes-to-a-input-type -text-immediately-using-jquery但也有:http://stackoverflow.com/questions/1539279/using-jquery-how-do-you-detect-if-the-value-of-a-text-input -has-changed-while-t | http://stackoverflow.com/questions/1481152/jquery-how-to-detect-a-textboxs-content-has-changed | http://stackoverflow.com/questions/6153047/jquery-detect-changed-input-text-box –