I am working with a group of radio buttons that display different content when clicked.
<div class="radio" ng-init="topRadios()">
<input type="radio" ng-model="topTable" value="topCategory" ng-change="updateTotals('topCategory')">TY 30 Categories</label>
<input type="radio" ng-model="topTable" value="topSupplier" ng-change="updateTotals('topSupplier')">TY Top 10 Suppliers</label>
<input type="radio" ng-model="topTable" value="topBrand" ng-change="updateTotals('topBrand')">TY Top 10 Brands</label>
</div>
In addition, I have a button that applies filters to the displayed information based on the selected radio button.
<button class="goButton btn btn-xs" ng-class="css" ng-click="go()" ng-disabled="isClicked"> Apply </button>
However, I am facing an issue where, after selecting a radio button and applying filters, the page refreshes and the first radio button is not automatically selected when the new information is displayed. Can someone assist me with this problem?