Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
June 21, 2004, 8:01 pm
rate this thread
This is my html file. When the user check the checkbox, it will enable
the field, and when the user uncheck the checkbox, it will make the
field read only.
If I use disable attribute, it is working fine. But I want to use
READONLY attribute. Field name h1 with disabled attribute is working
fine, but field name h2 is not working. Any ideas?? Thanks!!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<TITLE>Exact Match Form</TITLE>
//only affect standard fields
InputForm.h1.disabled = bValue;
InputForm.h2.readonly = bValue;
if (InputForm.cbIgnoreValidation.checked == true)
<P>Field With DISABLED ATTRIBUTE: <INPUT TYPE="TEXT" name="h1" size=25
maxlength=6 value="disabled field" DISABLED>
<P>Field With READONLY ATTRIBUTE: <INPUT TYPE="TEXT" name="h2" size=25
maxlength=6 value="readonly field" READONLY>
<INPUT type="checkbox" name="cbIgnoreValidation"
Re: problem to disable or enable READONLY attribute
InputForm.h2.readOnly = bValue;
Note the O.
This could also be confusing you. You have specified a maximum length of 6
but have initialised the field with text that is more than 6 characters
long. Even if the field is not readonly you will not be able to type
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum