If I get you right you have to put your function into the callback
part of your $(this).load(that); via $(this).load(url,
{},myCallbackFunction());
The callback-function will be executed when the ajax-call has been
completed and should do what you are asking for.

On Feb 12, 7:28 pm, oli <janoli...@gmail.com> wrote:
> Hi there,
>
> I couldn't find any solutions for my problem, so I'm asking here. I
> have a form that was previously loaded by ajax and which I want to
> submit also with ajax.
>
> unfortunately, the jQuery(document).ready function has been executet
> before the form was loaded, and so the event handler onClick for the
> submit link isn't called when I click on the button in the form.
>
> So,
> jQuery("#submit-register-form").click(function() {
> alert('yay');}
>
> doesn't work if the form has been loaded by ajax, but does work if I
> load it on site load.
>
> How can I solve this?
>
> Regards,
> Oli

Reply via email to