[英]I.E - keypress happen all the time - jquery
i have a problem with ie, like always. 我有一个问题,即像往常一样。
check this demo with IE9 or 8: DEMO 使用IE9或8检查此演示: DEMO
go inside the input and hit the enter , i dont know why the alert will apear. 进入输入,然后按Enter ,我不知道为什么会出现警报。
bug ? 错误?
// the button
$("#client").live("click", function(){
alert('test');
});
// the input text
$("#pesq_model").live("keypress", function(e){
// testing with nothing
});
You should use $('#form_id').live("submit", {...})
instead, I think. 我认为应该改用$('#form_id').live("submit", {...})
。
http://jsfiddle.net/C5Jzw/4/ http://jsfiddle.net/C5Jzw/4/
$("#form_id").live("submit", function() {
alert('teste');
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.