jquery值发生改变时触发

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

 

posted @ 2013-06-14 11:18  一千零一夜  阅读(7145)  评论(0编辑  收藏  举报