2
我有一个像下面的HTML其中有多种形式。我使用JSTL 生成这个数据,因此数量可能会有所不同,具体取决于我的数据库中注册的内容。 每个表单都有其自己的提交按钮。JQuery的多个表单和表单插件
基本上,我想使用表单插件ajax提交按钮 但我不知道如何引用表单。
<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>
我的问题是我怎么知道哪种形式ID是越来越提交使用jQuery
我不知道哪种形式,名称将我在调用Ajax的形式放置。
$ ('#form-name?').ajaxForm();
任何想法吗?谢谢。
非常感谢! =) – 2010-07-18 06:50:13