hi! I just joined this form and hope to find and answer to my question. Consider me as a javascript newbie ?. My question is i have this for form with couple options and a text box and what I want to do is when user selects the “none” textbox to be enabled and if user chooses “mysite” option textbox to be disabled so user can`t put his/her input. here is my code:
[code]
<form id=”form1″ method=”post” action=””>
<label>
<select name=”none” id=”noneid” >
<option value=”none”>None</option>
<option value=”mysite”>Mysite</option>
</select>
</label>
<label>
Another
<input type=”text” name=”another” id=”anotherid” />
</label>
</form>
I think i need a javascript function to trigger by onchange event to disable or enable textbox depending on the user input. But i dont know how to write that function.
Thank You in advance for your help