我想获取动态创建的复选框值,我已经搜索了这个,但我没有得到任何解决方案
<div ng-app="formListApp" ng-controller="formListController">
<form action="post" class="ng-pristine ng-valid">
<button class="md-raised" type="button" ng-transclude="" ng-click="applyTemplate()">Allpy Template</button>
<table>
<tr id="header" class="header_row_hed">
<td id="sl_no" class="sl_no_col_hed">Sl.No</td>
<td id="chk_box" class="chk_box_col_hed">
<input name="select_all" id="selectAll" class="" style="" ng-model="all" type="checkbox">
Select All
</td>
<td id="form_name" class="form_name_col_hed">Form Name</td>
<td id="template_name" class="template_name_col_hed">Applied template</td>
</tr>
<?php
$slNo = 1;
foreach ( $form_list as $form_lists ) {
<tr id="form-<?php echo $form_lists['id']; ?>" class="header_row">
<td id="<?php echo $slNo; ?>" class="sl_no_col"><?php echo $slNo; ?></td>
<td id="chk-box-<?php echo $form_lists['id']; ?>" class="sl_no_col_hed">
<input name="select_all" id="selectAll-<?php echo $form_lists['id']; ?>" class="" style=""
ng-checked="all" ng-model="formId<?php echo $slNo; ?>" type="checkbox"
val="<?php echo $form_lists['id']; ?>">
</td>
<td id="form-id-<?php echo $form_lists['id']; ?>"
class="form_name_col"><?php echo $form_lists['name']; ?></td>
<td class="template_name_col"></td>
</tr>
<?php } ?>
</table>
</form>
</div>
<script>
var myAdminApp = angular.module('formListApp');
myAdminApp.controller('formListController', function AdminController($scope) {
$scope.formId = {};
$scope.applyTemplate = function () {
}
});
</script>
这是我的代码我是角色新手可以获得复选框值吗?