Howdy and thanks for reading,
I am trying to display some html when a user selected a value in the drop down box. Right now it doesn't do anything. Any ideas?
Thank you for all of your help,
Will
Here is the code:
<select name="FollowUp" style='font-size:9pt' title='FollowUp'onChange="ShowFollowUp1(this.form.FollowUp)">
<option value='-NOT SELECTED-' >-Select- </option>
<option value=1>Email</option>
<option value=2>Phone</option>
<option value=3>Page</option>
</select>
<input type='radio' name='RentalLoc' value='Airport' onClick="ShowFollowUp1()">
<script type='text/javascript'>
<!--
function ShowFollowUp1(object)
{
FollowUp = object.options[object.selectedIndex].value
switch (FollowUp)
{
case 1:
Show1.innerHTML = ("<tr><td height='22' class='text2'>Email: <td/><input type='text2' id='Email' name='Email' size='20' maxlength='50' style='font-family:Verdana; font-size:7pt' title='Email' value='<%=strEmail%>'></tr>");
case 2:
Show1.innerHTML = ( "<tr><td height='22' class='text2'>Phone: <td/><input type='text2' id='Phone' name='Phone' size='20' maxlength='50' style='font-family:Verdana; font-size:7pt' title='Phone' value='<%=strPhone%>'></tr>" );
case 3:
Show1.innerHTML = ( "<tr><td height='22' class='text2'>Page: <td/><input type='text2' id='Page' name='Page' size='20' maxlength='50' style='font-family:Verdana; font-size:7pt' title='Page' value='<%=strPage%>'></tr>" );
}
}
//-->
</script>
<table>
<tr bgcolor='#EEEEEE'>
<td> </td>
<td> </td>
<td colspan='4' class='text2' id='Show1'>
</td>
</tr>
</table>
I am trying to display some html when a user selected a value in the drop down box. Right now it doesn't do anything. Any ideas?
Thank you for all of your help,
Will
Here is the code:
<select name="FollowUp" style='font-size:9pt' title='FollowUp'onChange="ShowFollowUp1(this.form.FollowUp)">
<option value='-NOT SELECTED-' >-Select- </option>
<option value=1>Email</option>
<option value=2>Phone</option>
<option value=3>Page</option>
</select>
<input type='radio' name='RentalLoc' value='Airport' onClick="ShowFollowUp1()">
<script type='text/javascript'>
<!--
function ShowFollowUp1(object)
{
FollowUp = object.options[object.selectedIndex].value
switch (FollowUp)
{
case 1:
Show1.innerHTML = ("<tr><td height='22' class='text2'>Email: <td/><input type='text2' id='Email' name='Email' size='20' maxlength='50' style='font-family:Verdana; font-size:7pt' title='Email' value='<%=strEmail%>'></tr>");
case 2:
Show1.innerHTML = ( "<tr><td height='22' class='text2'>Phone: <td/><input type='text2' id='Phone' name='Phone' size='20' maxlength='50' style='font-family:Verdana; font-size:7pt' title='Phone' value='<%=strPhone%>'></tr>" );
case 3:
Show1.innerHTML = ( "<tr><td height='22' class='text2'>Page: <td/><input type='text2' id='Page' name='Page' size='20' maxlength='50' style='font-family:Verdana; font-size:7pt' title='Page' value='<%=strPage%>'></tr>" );
}
}
//-->
</script>
<table>
<tr bgcolor='#EEEEEE'>
<td> </td>
<td> </td>
<td colspan='4' class='text2' id='Show1'>
</td>
</tr>
</table>