Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

how to link javascript function to my edge animate project?

$
0
0

I currently have a working email form using PHP in my edge animate project and am trying to add form validation to it.

 

I am having trouble linking this code to my project (or just adding it in) for basic email validation but edge gives me a syntax error each time I do?

 

This is the simple javascript I want to run:

 

function IsEmail(email) {  var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;  return regex.test(email);
}

Viewing all articles
Browse latest Browse all 9897

Trending Articles