Hi All,
I have a html like below wherein there are multiple forms. I generate this using JSTL so the number could vary depending on what is enrolled in my DB Each form has its own submit button.
Basically, I wanted to use the Form Plugins ajax submit button but I dont know how to reference the form.
<form id="form-1" action="approve.htm">
<textarea name="comment"> </textarea>
<input type="submit" value="Add Comment" />
</form>
<form id="form-2" action="approve.htm">
<textarea name="comment"> </textarea>
<input type="submit" value="Add Comment" />
</form>
.
.
.
<form id="form-10" action="approve.htm">
<textarea name="comment"> </textarea>
<input type="submit" value="Add Comment" />
</form>
My problem is how do I know which form id is getting submitted by using Jquery
I dont know which form-name will I place in the call to the ajax form.
$('#form-name?').ajaxForm();
Any ideas please? Thanks.