Forum Moderators: open
Ah hah!
thats what i thought - but i wasn't for sure.
In my onchange event in the textbox....
<input type=text class="inactive-area"
maxlength=10
name="st"
onchange="checkTestTime(this);">
My javascript function is....
function checkTestTime(a)
{
var ok = false;
if (IsValidTime(a.value))
{
alert("1");
}
else
{
alert("here");
a.focus();
// document.Form1.st.focus();
return true;
}
}
The IsValidTime(a.value)
returns true or false based on the value.
But the field just gets skipped
and the next field is made active...
any suggestions would be appreciated
thanks
tony