I have a date validation function that I want to stay at the object I am
validating if there is a Validation error, but it always goes to the next
object.
The Javascript:
function ValidateForm(me ){
var dt=me
if (isDate(dt.valu e)==false){
dt.focus()
return false
}
return true
}
The html:
<input name="AbsentFro m1" type="text" size="10" id="AbsentFrom1 "
onBlur="return ValidateForm(th is)" />
I do get the error box in my other function (isDate) and it is doing the
dt.focus().
Why doesn't it stay there?
Thanks,
Tom
validating if there is a Validation error, but it always goes to the next
object.
The Javascript:
function ValidateForm(me ){
var dt=me
if (isDate(dt.valu e)==false){
dt.focus()
return false
}
return true
}
The html:
<input name="AbsentFro m1" type="text" size="10" id="AbsentFrom1 "
onBlur="return ValidateForm(th is)" />
I do get the error box in my other function (isDate) and it is doing the
dt.focus().
Why doesn't it stay there?
Thanks,
Tom
Comment