I left the +c out of the name to show the original script. This is what I was trying to use:
for (var c=1; c<document.form2.HMANY.value; c++) {
if (document.form2.txtUserName +c.value == "") {
missinginfo += "\n - Name";
}
The field I am trying to validate is created...
I am attempting to loop through a set of field names that are enumerated by another loop ...IE fieldName1, fieldName2, fieldName3
The code I wrote:
for (var c=1; c<document.form2.HMANY.value; c++) {
if (document.form2.txtUserName.value == "") {
missinginfo += "\n -...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.