I am using
<script>
function Validate()
{
var regEx = /[a-zA-Z][0-9][a-zA-Z](-| |)[0-9][a-zA-Z][0-9]/;
if(regEx.test())
{
alert(‘Valid Postal Code’);
}
else
{
alert(‘Invalid Postal Code’);
}
}
</script>
to validate the postal code with an onBlur function for some reason even if i type in a valid postal code it comes as invalid. Can anyone clarify why?