if (nullReg.test($("#borrowTime").val())) {
$("#borrowTimeError").html("借用时间不能为空!");
$("#borrowTime").select();
$("#borrowTime").bind("change", function() {
//$("#borrowTime").bind("propertychange", function() { // right
$("#borrowTimeError").html("");
});
return false;
}
// 由于borrowTime 为不可编辑的input框
所以当 该文本框为 空值 时,将出现一个 “借用时间不能为空” 的提示
且, 绑定了一个 change 事件
当你修改 该input 框, 使其值不为空的时候, change 事件 并不会触发。