| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
knocking heads
Join Date: Jul 2003
Location: London, UK
Posts: 1,957
|
javascript enable/disable form field
I'm having problems enabling a form field once its been disabled, i have written the following javascript code: menuID being the field i want to disable, and test being a checkbox Code:
any ideas? |
|
|
|
|
|
#3 (permalink) |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 2,966
|
Both the checked and disabled properties take boolean values (true or false, though not as string literals, so they shouldn't be in quotes). e.g. Code:
This means that the process can be simplified by setting the disabled value to the checked value. i.e. Code:
|
|
![]() |