<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>js checkbox listbox</title>
</head>
<input type="checkbox" id="cbox"
onclick="check()" /><select><option>列表1</option><option>列表2</option><option>列表3</option></select>
<script>
function check(){
var oBox=document.getElementById('cbox');
if(oBox.checked==true){
document.getElementsByTagName('select')[0].disabled=true;
}else{document.getElementsByTagName('select')[0].disabled=false;
}
}
</script>
<body>
</body>
</html>