Does .live() binding work for jQuery in IE7?

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2009-03-20T20:18:10Z Indexed on 2010/05/05 16:38 UTC
Read the original article Hit count: 152

Hi everyone,

I have a piece of javascript which is supposed to latch onto a form which gets introduced via XHR. It looks something like:

$(document).ready(function() {

   $('#myform').live('submit', function() {
      $(foo).appendTo('#myform');
      $(this).ajaxSubmit(function() {
        alert("HelloWorld");
    });
       return false;
   });

});

This happens to work in FF3, but not in IE7. Any idea what the problem is?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript