Hi,
I have what I hope is a simple question. The chrome debugger is giving me an error in my validation code:
Uncaught SyntaxError: Unexpected token {
The error is on the "{" line in the below code:
Any simple fix? Many thanks!
Katie
I have what I hope is a simple question. The chrome debugger is giving me an error in my validation code:
Uncaught SyntaxError: Unexpected token {
The error is on the "{" line in the below code:
JavaScript:
if ((document.forms.regform.graddate.value.length > 0) && ( !/^\d{2}\/\d{2}$/.test(document.forms.regform.graddate.value) ) //graddate mm/yy
{
alert("Graduation date must be in format mm/yy to continue.");
return false;
}
Any simple fix? Many thanks!
Katie