请教高手个问题 我现在有个复选框,我要如何实现选中它之后显示隐藏的文本框啊?谢谢高手指点 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if(document.getElementById('checkboxId').checked) document.getElementById('textboxId').style.display='block';else document.getElementById('textboxId').style.display='none'; <input type="checkbox" value="1" onclick="c(this)" /><input type="text" id="tx1" value=""/><script>function c(obj){ if(obj != null) document.getElementById("tx1").style.display = obj.checked==true ? "" : "none";}</script> 为何不是后台编程?if (CheckBox27.Checked == true) { TextBox3.Visible = true;} 判断文件类型。。大家帮忙看看 很简单的 sql参数化查询 一个关于checkbox单选的问题 大哥们来帮我看下 ! DropDownList AutoPostBack 时报 "缺少对象" 错?请高手解答. 一个web上的视频播放问题 SQL Server 2005的触发器,急!! 如何自动触发menu的click事件? 网站中这个静态的DBHelper能用么? ★★急救新手!在ASP.NET中窗体之间参数传递的问题, 在线等!(来者有分) 学无止境啊,小技巧,才发现,大家共享,顺便散分 Ajax调用Web service的问题 有个疑难问题 关于客户下的单子 延迟5秒再判断该单子是否有效
document.getElementById('textboxId').style.display='block';
else
document.getElementById('textboxId').style.display='none';
<input type="checkbox" value="1" onclick="c(this)" />
<input type="text" id="tx1" value=""/>
<script>
function c(obj)
{
if(obj != null)
document.getElementById("tx1").style.display = obj.checked==true ? "" : "none";
}
</script>
if (CheckBox27.Checked == true) { TextBox3.Visible = true;}