Click to See Complete Forum and Search --> : disable textbox


Sonia
07-24-2003, 02:56 AM
How can I disable a textbox and reverse the condition afterwards?

i.e If I have a dropdown menu containig country names. When I select a country the textbox below must be disabled. But when I select 'Others' from the dropdown menu, I should be able to enter a text in the 'Others' textbox below.

pelegk1
07-24-2003, 02:59 AM
<input type=text name=box1 id=box1>

<script>
box1.enabled=true; //enable
box1.enabled=false; //disable
</scropt>
just put it in functions and enjoy it