objForm.offtime.validateExp("document.form1.offtime.value == "Normal" &&
document.form1.jobno.value() == """);
The error is "Expected )"
I hate _javascript_ syntax :(
-Gel
-----Original Message-----
From: brob [mailto:[EMAIL PROTECTED]
I just took off "document." and changed the alert message syntax. You
might want to consider trimming whitespaces off the jobno field just in
case but i'm lazy to write something :-D
<script LANGUAGE="_javascript_">
function _customValidation()
{
if(form1.offtime.value == "Normal" && form1.jobno.value() == "" )
{
Alert("You must supply a value for either field_A
or field_B");
}
}
</script>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
