Is this possible in standard ASP?
I have a form with a textbox that only needs to be completed if the combi box before it is changed to a particular value.
What I have done is set the textbox to be disabled at first
I also have an function that is triggered OnChange of the combi box
What I want to happen is that the textbox 'DHours' will be enabled if the 'JourneyT' combi box changes value to 3
I've been trying alsorts but don't seem to be able to get it to work.
Any help appreciated.
Mych
I have a form with a textbox that only needs to be completed if the combi box before it is changed to a particular value.
What I have done is set the textbox to be disabled at first
Code:
...
<tr valign="top">
<td align="right"><b>Driver Hours:</b></td>
<td align="right"><input type="text" id="Dhours" name="Dhours" size="2" disabled="disabled" />hours <i>Min <%= glbstrMinBlockB %> hours<br /> for Block Booking</i></td>
</tr>
...
I also have an function that is triggered OnChange of the combi box
Code:
<script type="text/javascript">
function ShowDriverH()
{
if (document.getElementById('JourneyT').Value="3")
{
document.getElementById('Dhours').Disabled=False
}
}
</script>
What I want to happen is that the textbox 'DHours' will be enabled if the 'JourneyT' combi box changes value to 3
I've been trying alsorts but don't seem to be able to get it to work.
Any help appreciated.
Mych