try:
<input type=checkbox name="checkbox1" onclick="control()">
<input type=checkbox name="checkbox2">
<script language=jscript>
function control()
{
document.all.checkbox2.disabled=true;
//document.all.checkbox2.readonly;
return;
}
</script>
<input type=checkbox name="checkbox1" onclick="control()">
<input type=checkbox name="checkbox2">
<script language=jscript>
function control()
{
document.all.checkbox2.disabled=true;
//document.all.checkbox2.readonly;
return;
}
</script>
解决方案 »
- Aptana怎么使用
- 背景图片改变的问题 急求
- 求一个Jc打印网页中图片的代码
- 简单问题 求知!谢谢!怎么才能让页面在首次刷新时id="a1" 的li 的背景图片是1.gif?
- 用document.write写的html和用document.createElement("xx")两种方法有什么不同?
- 求一段JS代码 判断是否是工作日 最好算上法定假期
- js:已知在一表格中某行输入框field1的指针this,如何取得同行 field2 的指针?
- <input type=file name=ss>怎么给它个初始值,没有其他理由,后面加value="xxxxx"和defalutvalue已经用过,无任何效果
- 怎样在客户端弹出友好一些的msgbox?不要window.alert()那样的黄色感叹号的
- 判断文本框是否为时间格式,有点问题,大哥进来看看
- 怎样的onchange参数能自动提交
- 如何在用javascript:history.back();返回后自动刷新返回后的页面?谢谢!
<input type=checkbox id='p'>
<input type="checkbox" name="" onclick="document.all.aaa.disabled=true">
<input type="checkbox" name="aaa">
<input type="checkbox" name="checkbox1" value="checkbox" onclick="form1.checkbox2.style.display=(this.checked ? 'none':'inline');">
<input type="checkbox" name="checkbox2" value="checkbox">
</form>