I have some radio buttons set on items (none are checked to begin with) that I have associated a button press. I would like this action NOT to do anything if no radios are checked off (because it requires information of one of the radios).
So I just have this button:
<button class="openButton" ng-click="showSubLevel = ! showSubLevel">Add Sub Level</button>
Which opens another div using
<div class="addSubLevel" ng-show="showSubLevel">
However I would like the button to do nothing (or alert the user) that they have to select a radio to open the .addSubLevel div.
The radios just look this like this :
<input type="radio" name="instructionLevelChecker">
As I'm not sure what I have to add to them to make this work. Appreciate any input, as I am still new to angular. Thanks!