Hi,
I have one form with fields Radio button,text1 and text2
by deafult i need to disable text1 ,text2 and select check no option in radio button
if we can check Yes button then i need to enable text1 and text2
could you please help me
@{
Layout = null;
}
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.8/angular.min.js"></script>
<script>
var app = angular.module("myApp", ['angularUtils.directives.dirPagination']);
app.controller("myCntrl", ['$scope', '$http', function ($scope, $http) {
}]);
</script>
</head>
<body>
<div id="wrapper" class="clearfix">
<form name="userForm" novalidate>
<div class="form-horizontal">
<div class="row">
<div class="col-md-3" style="margin-top:5px;">
<label for="CAL_IsApproved">Radio Button</label><br />
<input type="radio" name="CAL_IsApproved" ng-model="Radiobutton" ng-value="1"> Yes
<input type="radio" name="CAL_IsApproved" ng-model="Radiobutton" ng-value="0"checked > No<br>
</div>
<div class="col-md-3">
<label for="UserName">Text1</label>
<input type="text" class="form-control" ng-model="Text1" />
</div>
<div class="col-md-3">
<label for="Password">Text2</label>
<input type="text" class="form-control" ng-model="Text2" />
</div>
</div>
<div></div>
</div>
</form>
</div>
</body>
</html>