In view there are two lists of radio buttons
L1
<input type="radio" name="SET1" ng-model="SET1Selected" value="S1"> S1
<input type="radio" name="SET1" ng-model="SET1Selected" value="S2"> S2
<input type="radio" name="SET1" ng-model="SET1Selected" value="S3"> S3
L2
<input type="radio" name="SET2" ng-model="SET2Selected" values="S4"> S4
<input type="radio" name="SET2" ng-model="SET2Selected" value="S5"> S5
<input type="radio" name="SET2" ng-model="SET2Selected" value="S6"> S6
<button ng-click="submitRadioBtn()"></button>
Angular JS
var app = angular.module("myApp", []);
app.controller("myCtrl", ['$scope', function($scope) {
$scope.submitRadioBtn=function(){
var valfromSET1 = $scope.SET1Selected;
var valfromSET2 = $scope.SET2Selected;
}
}]);
I have to get values of both radio buttons on click.