Hey there... I'm trying to enable an input field depending on the option selected. Here's a fragment of my code:
Code:
<form name="frmEditEvent" ...>
<select name="type" style="width:65px;">
<option value="1" onclick="document.frmEditEvent.name.readOnly=false;">Option</option>
...
</select>
<input type="text" name="name" readonly="readonly" ... />
</form>
It works just fine if the user employs a mouse to select from the dropdown.. but if the user uses a keyboard to press O, the Option is selected, but the defined operation naturally does not occur, since no "click" was performed.
How can I make it perform the action, regardless of how option1 is chosen? Basically as soon as option1 is selected (mouse or keyboard), perform the action.
I've tried onFocus and it did not work... Please help.