Hi,
My wife has a form people fill out to submit orders.
Have a check on it to validate the fields and this works ok and if field not completed it returns the focus to the input field that failed as wanted.
When the user has scrolled to the bottom of the page off the field validated it returns to the input field but the title of the field is above out of view.
Is there a way to return to the focus field and display the page the line above that so the title shows?
my current code is
if((field.type==”text” || field.type==”textarea” || field.type==”password”) && field.value==””){
alert(“Please fill in the ‘”+field.name+ “‘ field.”)
setTimeout(“document.forms[0].elements[“+i+”].focus()”, 10)
return false
}
thanks
Rab