|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have this code in a function:
document.form1.elements[i].readonly = 'false' document.form1.elements[i].value='red'; The text field can get the value 'red' assigned to it, so I know I have the right object. I can't get disabled=false readonly=false or anything to enable the text field again. Is there something that works? veggie2u |
|
#2
|
|||
|
|||
|
OK, so now I just found out you can't change items in the 'element' array. I tried the disable='false' with the real object name, and it works. How do I do this with a function? What can I pass to the function so that it will know what text field I am referring to.
veggie2u |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Can you enable a text field if it was disabled? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|