I have a radio button in table and I want to implement select all functionality for radio button based on name. This is my code:

```js
var checked = false;

$scope.acceptOrRejectAllOrders = function(selectedVal) {
  if (selectedVal == 'Accept all') {
    jQuery("#bundleAcceptAll").attr('checked', 'checked');

    // $("#bundleAcceptAll").prop("checked", true);
    //$("#bundleAcceptAll").attr('checked', 'checked');

    var aa = document.getElementsByName("bundleAcceptAll");
    for (var i = 0; i < aa.length; i++) {
      document.getElementsByName(bundleAcceptAll).checked = true;
    }

    //$scope.quoteRequest.quotationRequestItems[0].quotes.length
  } else {
  }
};

```

```html
<div style="border:1px #f5f4f4 solid;background: #f9f9f9;" ng-repeat="(key,quoteAndOrder) in getQuotesAndOrders()">
  <div style="background: #fff;">
    <table border="0" style="width: 100%;" class="table table-striped">
      <thead>
        <tr style="background: #ff7900;color: #fff;">
          <th>Quote ID</th>
          <th>{{key}}</th>
        </tr>
        <tr>
          <th>Accept or Reject Orders:</th>
          <th>
            <span style="float: left;background: #f9f9f9;">
              <input type="radio" name ="bundleAcceptAll" ng-change="" class="radioSignatory" value="Approve Order" ng-disabled=""> 
              <p class="labelRadioSignatory">Approve Order</p>
              <input type="radio" name ="bundleRejectAll"  ng-change="" class="radioSignatory" value="Reject Order" ng-disabled=""> 
              <p class="labelRadioSignatory">Reject Order</p>
            </span>
          </th>
        </tr>
      </thead>
      <tr ng-repeat="odr in quoteAndOrder">
        <td> {{odr.id}} </td>
        <td>{{odr.status}}</td>
      </tr>
    </table>
    <hr>
  </div>
</div>

```

I am not able to select all radio buttons with name bundleAcceptAll. It is basically a list in which each row will have a radio button. I want all radio buttons in the list to be selected. Only one button gets selected