jquery值发生改变时触发
$("#txtId").bind("input propertychange change", function (event) {
if (event.type != "propertychange" || event.originalEvent.propertyName == "value") {
$(this).css({"border": "1px solid red"});
}
});

浙公网安备 33010602011771号