Click here to Skip to main content
15,883,829 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a Question with 5 radio buttons when I click on the first Four radio buttons textbox has to appear and for 5th radio button textbox must be hide
Posted
Comments
Member 10403555 24-Mar-15 3:48am    
i have tried using ng-model and ng-show

1 solution

Try this:
XML
<!DOCTYPE html>
<html>
<head>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
</head>
<body>
<div ng-app="">
    <form>
      <input id="first" type="radio" name="content" ng-model="content" value="first">First
      <br />
      <input id="other" type="radio" name="content" ng-model="content" value="fifth">Fifth
    </form>

    <input type="text" ng-show="content != 'fifth'">
</body>
</html>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900