Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Get Radio Select Value Dynamically in AngularJS



To get the value of radio select, add [$index] to each ng-model like the following:

<td><input type = "radio" ng-model = "classes.satisfies[$index]" value = "Country1"> India</td>
<td><input type = "radio" ng-model = "classes.satisfies[$index]" value = "Country 2"> US</td>

The above would give you the result dynamically in AngularJS.

Updated on: 2020-01-29T06:34:33+05:30

177 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements