Click to See Complete Forum and Search --> : form enabling....


xataku_nakusute
07-27-2003, 04:12 PM
ok, i dont need an actual code for this, but what is the basic code part for just enabling/disabling fields of a form?

David Harrison
07-27-2003, 04:56 PM
<form name="form_hi">

<input type="text" name="text_hi">

<input type="button" name="en" value="Enable Text Field" onclick="document.form_hi.text_hi.disabled=true">

<input type="button" name="dis" value="Disable Text Field" onclick="document.form_hi.text_hi.disabled=false">

</form>