Deltaflyer
Programmer
I have a HTML/JavaScript page for editing records in my databases, this works ok. For functionality reasons i need to be able to lock this page if the record that is being edited has been completed.
I.E. if the COMPDATE field has an entry then all the fields on my editrecord.asp are read-only.
I have the following code to make a field permanently read-only,
<form name=form>
<input type=text name=box value="ReadOnly" onChange="this.value='ReadOnly';" size=12 readonly></form>
what i would like is to be able to make a field read-only via javascript, dependant on if the COMPDATE field has an entry.
DeltaFlyer - The Only Programmer To Crash With Style.
I.E. if the COMPDATE field has an entry then all the fields on my editrecord.asp are read-only.
I have the following code to make a field permanently read-only,
<form name=form>
<input type=text name=box value="ReadOnly" onChange="this.value='ReadOnly';" size=12 readonly></form>
what i would like is to be able to make a field read-only via javascript, dependant on if the COMPDATE field has an entry.
DeltaFlyer - The Only Programmer To Crash With Style.