Hi
Yes, something like this:
for (x=0; x < document.FormName.elements.length; x++){
if (document.FormName.elements[x].value == ""){
//some code }
}
To be helpful to the user though, the //some code should give an indication of which field is empty - you can use the...
Hi
I am using the following function which is called by onLoad in the BODY tag (e.g <BODY onLoad=FieldFocus('email');>):
function FieldFocus(fieldstr) {
document.forms[1].elements[fieldstr].focus();
if(document.forms[1].elements[fieldstr].type != "select-one") {...
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.