本文介绍了当我点击前四个单选按钮文本框时,我有一个带有5个单选按钮的问题,并且必须隐藏第五个单选按钮文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我点击前四个单选按钮文本框时,我有一个带有5个单选按钮的问题,对于第五个单选按钮文本框必须隐藏
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
推荐答案
<!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>
这篇关于当我点击前四个单选按钮文本框时,我有一个带有5个单选按钮的问题,并且必须隐藏第五个单选按钮文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!