用radio控制的隐藏和显示问题时间:2021-10-27 12:04:57jsp页面代码 <tr> <th nowrap="nowrap" width="10%" height="50px" style="text-align: center;">是否评估通过</th> <td width="40%"> <input type="radio" id="yesorno" name="yesorno" value="1" onclick="yes()">是</input> <input type="radio" id="yesorno" name="yesorno" value="0" onclick="no()" selected = "false">否</input> </td> </tr> <tr id="third" > <th nowrap="nowrap" height="50px" style="text-align: center;">指派第三方机构</th> <td> <input id="ThirdPart" name="ThirdPart" class="easyui-combobox input160" data-options="valueField:'id',textField:'text',editable: false, panelHeight: 120, url:'${ctx}/rescue/surver/send/comlist.action?code=${userDep.sysDepartment.sysDepartmentId}',method:'get'" /> </td> </tr> <tr id = "reason" style="display: none"> <th nowrap="nowrap" height="100%" style="text-align: center;">退回原因</th> <td> <textarea id="reason" name="reason" class="easyui-validatebox" cols="157" data-options="required:true, validType: 'length[0,500]'" maxlength="500"></textarea> </td> </tr> tr js代码 //显示第三方机构 function yes(){ $("#reason").css('display', 'none'); $("#third").css('display', 'block'); } //显示退回原因 function no(){ $("#third").css('display', 'none'); $("#reason").css('display', 'block'); } js 相关文章按钮控制:vue,根据用户权限,控制按钮的显示和隐藏子组件通过v-if 来控制显示隐藏与 ref ,DOM渲染的问题!用switch组件控制一个元素的显示和隐藏状态js控制easyui datagrid列的显示和隐藏jQuery控制TR显示隐藏的三种常用方法控制input输入框中提示信息的显示和隐藏的方法jquery怎么实现点击一个按钮控制一个div的显示和隐藏问题:关于坛友的一个定时重复显示和隐藏div的实现uniapp开发小程序实现滑动页面控制元素的显示和隐藏效果用radio控制的隐藏和显示问题上一篇:Linux 安装PHP探针下一篇:【C语言】给一组组数,仅仅有两个数仅仅出现了一次,其它全部数都是成对出现的,找出这两个数。