参考:
function checkbz(){
var a = document.all.dbz.value;
if(a==""){document.all.zxh.disabled=true;document.all.ddh.disabled=true;document.all.zxh.style.backgroundColor='buttonface';document.all.ddh.style.backgroundColor='buttonface';}
if(a=="袋装"){document.all.zxh.disabled=true;document.all.ddh.disabled=false;document.all.zxh.style.backgroundColor='buttonface';document.all.ddh.style.backgroundColor='white';}
if(a=="箱装"){document.all.zxh.disabled=false;document.all.ddh.disabled=true;document.all.zxh.style.backgroundColor='white';document.all.ddh.style.backgroundColor='buttonface';}
}
function checkbz(){
var a = document.all.dbz.value;
if(a==""){document.all.zxh.disabled=true;document.all.ddh.disabled=true;document.all.zxh.style.backgroundColor='buttonface';document.all.ddh.style.backgroundColor='buttonface';}
if(a=="袋装"){document.all.zxh.disabled=true;document.all.ddh.disabled=false;document.all.zxh.style.backgroundColor='buttonface';document.all.ddh.style.backgroundColor='white';}
if(a=="箱装"){document.all.zxh.disabled=false;document.all.ddh.disabled=true;document.all.zxh.style.backgroundColor='white';document.all.ddh.style.backgroundColor='buttonface';}
}
解决方案 »
- firefox得到event了,但是为何event.clientX还是为undefined?
- 关于缩放功能的JS
- 如何实现图片新闻的效果
- (高分求)十万火急!!如何在js文件中使一个表格中的某一行中的某一列变成disable状态!
- 一个特效的写法
- 表中读取数据(这个表中记录数是可变的)在页面上以树形结构显示出来???
- 怎么用JavaScript使点击一个连接时让隐藏域的值在true和false之间交替变换
- 如何通过javascript获取下拉菜单中的值
- 从1980年到今天的下拉菜单,错在哪?大哥帮改一下
- 这样的图片特效如何做
- 急急急 如何点击按钮跳转页面,在ASP里怎么做,在线等 问题一解决马上结贴!!!
- 100给第一位帮我解决问题的朋友!!!
租用站房<input name="zystart" type="text" onClick="zy()" onFocus="calendar();" onkeypress="check();">function check(){
if(document.a.xjstart.value==""){
document.a.xjstart.disable=false;
document.a.zystart.disable=true;
}
else{
document.a.xjstart.disable=true;
document.a.zystart.disable=false;
}
}