代码如何写
CheckBox选中显示DIV没有选中不显示DIV
CheckBox选中显示DIV没有选中不显示DIV
解决方案 »
- JS问题,,大侠帮帮忙啊!!!!!!
- $("#dataarea").bind("plothover", fn) 和$("#dataarea").plothover(fn)的区别
- 求助!!!!判断file类型输入框是否为空
- 请问,一个页面或者一个form最多能submit多少个控件?
- 求一个JS二级导航
- 有没有比我高点的高手在?
- 可不可以获得当鼠标移动到inetenet exploer状态时的位置坐标?
- 怎样去掉IE关闭窗口前的确认提示?
- 如何在用window.open打开的窗口中再用widow.open打开另一个页面?
- 如何将‘2014-11-07 10:27:53.007’转成js对应时间
- 一组图片导航中图片的切换效果?
- javascript中回调的问题
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
</head> <body>
<input type="checkbox" onclick="showdiv(this);" />
<div id="div" style="display:none;width:100px;height:100px;border:solid 1px red;">我是div</div>
<script type="text/javascript">
function showdiv(ch){
if(ch.checked){
document.getElementById("div").style.display="block";
}
else{
document.getElementById("div").style.display="none";
}
}
</script>
</body>
</html>
function xx()//限用选项卡显示
{
if(Form1.selecta1.value=="1")
{ Form1.selecta1.value=0;
document.all.xy.style.display='';
}
else
{ Form1.selecta1.value=1;
document.all.xy.style.display='none';
}}<input type="checkbox" name="zzcx" onClick="javascript:zz()" value="1">可组装拆卸<input type="hidden" name="selecta1" value="1">