I can add a self-made attribute to a input field of a form and write javascript to use this attribute for field validation. This works in ie; but it does not work in Netscape.
Is there any way for Netscape to accept added attribute of an input field, when the field is passed for validation all at once (onSubmit(this.form)? (I use elements to validate each field, but I would like to differentiate the fields, not according to type, but certain attributes that I have added inside the HTML input tag.)
In Flanagan's book "Javascript: The Definite Guide", Page 314, there is a section like this:
------------------------------------------------------
<FORM onSubmit="
this.firstname.optional = true;
this.phonenumber.optional = true;
this.zip.min = 0;
this.zip.max = 99999;
return verify(this);
">
------------------------------------------------------------
If the above would work, I would have solved my problem; But it does not work!!!
PLS HELP.
Raymond
Is there any way for Netscape to accept added attribute of an input field, when the field is passed for validation all at once (onSubmit(this.form)? (I use elements to validate each field, but I would like to differentiate the fields, not according to type, but certain attributes that I have added inside the HTML input tag.)
In Flanagan's book "Javascript: The Definite Guide", Page 314, there is a section like this:
------------------------------------------------------
<FORM onSubmit="
this.firstname.optional = true;
this.phonenumber.optional = true;
this.zip.min = 0;
this.zip.max = 99999;
return verify(this);
">
------------------------------------------------------------
If the above would work, I would have solved my problem; But it does not work!!!
PLS HELP.
Raymond