mike@spb
August 19th, 2002, 02:32 PM
I previously submitted this thread but the title was wrong.
I am new to javascript and was wondering how and where to add an event handler, OnSelect(), to an option box. Here is what I currently have
<html>
<head>
<SCRIPT LANGUAGE="JavaScript1.2">
function BitRate(){
document.write(<td><Input Tytpe="text" name="BitRate")
}
</SCRIPT>
</head>
<table>
<tr>
<td>
<select name="BitRate">
<option selected value=""></option
<option value="28">28</option>
<option value="56">56</option>
<option value="128'>128</option>
<option value="300">300</option>
<option value=''">Other</option>
</select>
</tr>
</table>
What I want to be able to do is when the user selects "Other" in the option box, another <td> will appear showing a textbox which the user can then enter the bit rate.
Thanks
Mike@spb
I am new to javascript and was wondering how and where to add an event handler, OnSelect(), to an option box. Here is what I currently have
<html>
<head>
<SCRIPT LANGUAGE="JavaScript1.2">
function BitRate(){
document.write(<td><Input Tytpe="text" name="BitRate")
}
</SCRIPT>
</head>
<table>
<tr>
<td>
<select name="BitRate">
<option selected value=""></option
<option value="28">28</option>
<option value="56">56</option>
<option value="128'>128</option>
<option value="300">300</option>
<option value=''">Other</option>
</select>
</tr>
</table>
What I want to be able to do is when the user selects "Other" in the option box, another <td> will appear showing a textbox which the user can then enter the bit rate.
Thanks
Mike@spb