【发布时间】:2015-07-06 19:20:07
【问题描述】:
我的 html 页面中有一个复选框列表。现在,当用户单击复选框并按下 Donwload 按钮时,我应该能够知道在选中状态下单击了所有复选框。
<tr st-select-mode="multiple" st-select-row="row"
ng-repeat="row in orders">
<td>{{ row.orderid }}<td>
<td><input type="checkbox" name="{{ row.orderid }}"></td>
</tr>
<button type="button" class = "btn btn-default" ng-click="download()">Download Order</button>
因此,当我单击“下载订单”按钮时,我需要传递用于检查复选框状态的 orderid 的值。
那么如何做到这一点。我不知道如何继续。
【问题讨论】: