Here's what I have se far:
<script type="text/javascript">
other_text.disa bled = true;
function other_text() {
other_text.disa bled = (other_check.ch ecked == false)? false :
true;
}
</script>
<input type="checkbox" id="other_check " name="other_che ck"
onchange="other _text()" /><label for="other_chec k">Other</label><br />
<input type="text" id="other_text " />
But it doesn't work.
I did have it working using a onchange on the checkbox and having the
"other_text " text box disabled by default, but this ment that if the
browser didn't support or have JS enabled then the text box would stay
disabled. So I need to disable it using javascript, and re-enable it
when the checkbox is checked.
Any suggestions?