【发布时间】:2014-07-21 10:01:37
【问题描述】:
如何获取单选按钮的点击值?
实际上,我需要一个自定义过滤器来筛选我在<form> 中选择的性别。从输出中我需要过滤性别。我在ng-repeat 中的filter 和orderBy 工作不正常。
这是我的 Plunker 示例的链接:http://plnkr.co/edit/7ZBcMDrJzSreD73R9aNq?p=preview
for(var i=0;i<$scope.details.length;i++) {
if($scope.details[i]===$scope.options[i])
$scope.details=myService.getForm($scope.user);
}
【问题讨论】:
-
看看我的回答
标签: javascript html angularjs