[jQuery] Form submit problem when dealing with more than 1 form
The code is here: http://www.bootsnall.com/frame/forgot.html
- .htaccess u/p is frame/12
The js files that are being used are here:
http://www.bootsnall.com/frame/javascript/jquery.js
http://www.bootsnall.com/frame/javascript/form.js
http://www.bootsnall.com/frame/javascript/action.php?a=front/forgot
So the problem is that I'm trying to make my ajaxForm plugin to work
with more than 1 form in a page. But the thing is that when submiting
any one these 2 forms, it will show up the error and the "submiting
disabled text", only in the second form.
This is the code from the "javascript/action.php?a=front/forgot" file
$(function() {
var options = {
output: 'form_output',
submit_value: 'form_submit',
submit_text: 'Sending'
};
var options2 = {
output: 'form_output2',
submit_value: 'form_submit2',
submit_text: 'Sending2',
};
$('#default_form').ajaxForm(options);
$('#default_form2').ajaxForm(options2);
});
This line $('#default_form2').ajaxForm(options2); seems to overwrite
the options set in the previous line $
('#default_form').ajaxForm(options); .
Can someone tell me how do I add ajaxForm(options) for the first form
[default_form] and ajaxForm(options2) for the second form
[default_form2]
thanx in advance.