本文介绍了根据单选按钮的可见性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个单选按钮.
选中第一个单选按钮时,form1将可见,并且
当第二个单选按钮被选中时,form2将可见...
我该怎么做..

i have two radio buttons.
when 1st radio button is checked form1 will be visible and
when 2nd radio button is checked form2 will be visible...
how i can do this..??

推荐答案

<form id="first" ... > ... </form>
<form id="second" ... > ... </form>

...

<input type="radio" id="showFirst" ... >Show First</input>
<input type="radio" ... >Show Second</input>



您可以通过JavaScript处理可见性,例如:



you can handle visibility by JavaScript, something like:




这篇关于根据单选按钮的可见性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 09:25
查看更多