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.
- var options = { target: '#targ' };
- $('form[id^="fm"]').submit(function() {
- $(this).ajaxSubmit(options);
- return false;
- });
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