jQuery form plugin: Dynamic forms: How to bind?

jQuery form plugin: Dynamic forms: How to bind?

Hi,

How can I bind the jQuery form plugin to dynamically generated forms?

On my page I have a basic form (form#fm) with one input field and a submit button.

  1. var options = { target: '#targ' };
  2. $('form[id^="fm"]').submit(function() {
  3. $(this).ajaxSubmit(options);
  4. return false;
  5. });

This works great until I start adding new forms.

Using this plugin:

jquery-dynamic-form

I can dynamically create a duplicate of my form (form id: #id2)
but when I submit the form just takes me to action location.

My question: How can I get the jquery form plugin to recognize
my dynamicly added html forms?

Any tips you folks could send my way would be spectacular! :)

Many thanks in advance!

Cheers,
Micky