Jquery forms plugin problem

Posted by Dudul on Stack Overflow See other posts from Stack Overflow or by Dudul
Published on 2010-05-27T06:54:17Z Indexed on 2010/05/27 7:01 UTC
Read the original article Hit count: 222

Filed under:
|
|
|

I have the following:

$(document).ready(function(){
    // bind 'myForm' and provide a simple callback function 
        $('#form').ajaxForm(function() { 
            alert("Works!!!"); 
        });                        
});

The problem is that when I dynamically add the form to the HTML the script is not working. If the form is there from the beginning the form is submitted with Ajax and works as expected. What is the problem here?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery