【发布时间】:2015-11-19 13:15:57
【问题描述】:
我想在表单内发送表单,但是当我提交表单内表单时,现在所有表单都已提交。 甚至有可能做到这一点吗?
<form name="add_foobar_form" novalidate ng-submit="addFoobar(foobar)">
<form name="send_contact_form" novalidate ng-submit="sendContact(hello)">
<input type="text" ng-model="hello.bye">
<input type="submit" value="sendmall">
</form>
<input type="text" ng-model="foobar.go">
<input type="submit" value="sendall">
</form>
【问题讨论】:
-
最好不要将表单嵌套在表单stackoverflow.com/questions/379610/can-you-nest-html-forms中,您可以尝试提交按钮的表单标签w3schools.com/tags/att_button_form.asp