I am looking to retrieve the data (id, name) of a selected row using a radio button. Here is what I have so far:
<tr ng-repeat="list in listTypes">
<td>{{list.TaskId}}</td>
<td>{{list.Comments}}</td>
<td>{{list.RecordDate}}</td>
<td>{{list.StartDate}}</td>
<td>{{list.DueDate}}</td>
<td>{{list.AssignTo}}</td>
<td>{{list.AssignBy}}</td>
<td><label class="switch">
<input type="radio" name="switch-radio1" checked="" value="0" ng-value="true" >
<span></span>
</label></td>
</tr>
I need to extract the data taskId
and comments
from the selected row when the radio button is selected. What JavaScript function should I use for this? Thank you for any assistance.