ASP中单选框与下拉表列之间的判断

来源:百度知道 编辑:UC知道 时间:2024/06/24 09:29:33
现有二个单选按钮 及 二个下拉列表框

选中 “单选按钮A ”时显示“下载列表框A”不显示“下载列表框B”
选中 “单选按钮B ”时显示“下载列表框B”不显示“下载列表框A”

请问该如何判断呢。
我也知道这么判断。问题是我写不出代码。

请帮我写出实际应用代码。谢谢。

<input name="单选按钮" type="radio" value="单选按钮A" checked="checked" />
<span class="black">单选按钮A</span>
<input type="radio" name="b1" value="单选按钮B" />
<span class="black">单选按钮B</span>

<select name="下载列表框A" id="b3" class="kuang">
<option selected>下载列表框A值</option>
</select>

<select name="下载列表框B" id="b3" class="kuang">
<option selected>下载列表框B值</option>

给你一个写好的例子:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script>
//document.getElementById("list2").style.display="block";
function ridioClick(v)
{
if(v=='a')
{
document.getElementById("sela").style.display="block";
document.getElementById("selb").style.display="none";
}
else
{
document.getElementById("selb").style.d