[Javascript] form validation

Andrew Gibson andyg at ihug.co.nz
Fri Aug 3 08:03:52 CDT 2001


Can't you just validate it as per normal, by giving the input a name in your
.innerHTML and refer to it in script via the form?

<form name=myform>
 <input type=text name=mytext>
</form>

Andrew GIbson

Subject: [Javascript] form validation


Hi,
    I have a form that contains <input type=text> it is produced dynamically
through the .innerHTML method. Does anyone know of a way to validate this?
Is there an array of input tags or collection or something that could be of
use? All that needs to be done is make sure the text boxes contain something
ie. length != 0

regards,

Andrew




More information about the Javascript mailing list