即-按键发生的所有时间- jquery



我的ie有问题,像往常一样。

使用IE9或ie8检查此演示:demo

进入输入并点击输入,我不知道为什么会出现警告。

错误?

    // the button
    $("#client").live("click", function(){
       alert('test'); 
    });
   // the input text
   $("#pesq_model").live("keypress", function(e){
       // testing with nothing 
   });

IE对button标签有特殊的处理方式。您可以使用输入而不是按钮:

<input type="button" style="border: solid #dedede 2px; width:130px;" id="client" value="Trocar Cliente" />

演示。

我认为你应该用$('#form_id').live("submit", {...})代替。

http://jsfiddle.net/C5Jzw/4/

$("#form_id").live("submit", function() {
    alert('teste');
});

最新更新