您的位置:首页 > 其它

监听input text中内容发生变化时触发事件

2014-01-10 14:14 399 查看
依赖jquery类库

$(function(){

if($.browser.msie){

document.getElementById('start_time').attachEvent("onpropertychange",inputChange);

}else{

document.getElementById('start_time').addEventListener("input",inputChange,false);

}

});

/**需要实际进行的操作**/

function inputChange(){

alert(1);

}


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: