ajax and event handler

ajax and event handler

Hello @all,

I have a problem and no idea where is the error:
I use jquery in connection with zend Framework. I send a form (create something) via ajax to the server and get back a new form (edit). After that I want to delete the actual event handler and set a new one but unfortunately bind() and unbind() doesn't show effects on this form. Always the first created event handler (before the ajax request) is running.

Does anybody have ideas?

The response html contains the follwoing script
  1. $(".formContainer form").unbind('submit');
    $(".formContainer form").bind('submit', function(e){
        sendform('path/to/script');
    });


Thank you in advance