【发布时间】:2016-01-10 08:55:00
【问题描述】:
在我的表单中,输入字段和复选框重复如下。
<form class="form-horizontal popupform" novalidate>
<input type="text" data-ng-model="returns.altCity">
<input type="text" data-ng-model="returns.altZip">
<input type="text" data-ng-model="returns.altName">
<table class="table table-striped">
<thead>
</thead>
<tbody>
<tr data-ng-repeat="item in order_items">
<td>{{item.id}}</td>
<td>{{item.price}}</td>
<td>
<input name="quantity-item.id" type="number"
data-ng-model="item.quantity"
value="returns.id">
</td>
<td align="center">
<input type="checkbox" checklist-model="item.checkOrder"
checklist-value="returns.id" checked="checked">
<label> </label>
</td>
</tr>
</tbody>
</table>
<button type="button" data-ng-click="saveReturnCases(returns)">Submit</button>
</form>
我想在按钮单击中获取数字输入字段和复选框值。如何获取重复的字段值?
【问题讨论】:
标签: javascript html angularjs forms