I need to validate my radio button field using Angular.js .Let me explain with my code below.
<form name="myForm" enctype="multipart/form-data" novalidate>
<div>
<input type="radio" ng-model="new" value="true" ng-required="!new"> new
<input type="radio" ng-model="new" value="false" ng-required="!new">Old
</div>
<input type="button" class="btn btn-success" ng-click="addData(myForm);" value="Add" ng-show="myForm.$valid"/>
</form>
Here i need when user is not selecting any radio button the add button should not be visible to user.I did some coding but its not happening like that .Please help me.