"Jason McDonald" <jm*******@nyc.rr.com> wrote in message
news:5c**************************@posting.google.c om...
I have a PDF form that has a combo box "no_wireless_mics" with the
values "1" "2" and " " where " " is the default. I need a JavaScript
that will cause the check box "wireless_mics" to be checked
(value=true) when the combo box value is "1" or "2"
I ama JavaScript newbie and I'm having quite a time figuring this out.
Thank you for your time and attention.
For example:
<html>
<head>
<script type="text/javascript">
function miscOnChange(obj){
if ((obj.value == 1) || (obj.value == 2)){
document.getElementById("wirelesmisc").checked=tru e;
}
else{
document.getElementById("wirelesmisc").checked=fal se;
}
}
</script>
</head>
<body>
<input type="checkbox" id="wirelesmisc">Wireless
<select id="misc" onchange="miscOnChange(this)">
<option value=""></option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</body>
</html>
HTH
Vjekoslav