Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

JavaScript E-mail Validation Script Issues

$
0
0

Hi Everyone:

 

I am using Adobe Pro. I'm looking to validate a custom textbox I created which will contain email addresses, for example:

xxx@xxx.xxx; xxx@xxx.xxx; xxx@xxx.xxx

I wrote some JavaScript which looks to be accurate, however It's not working. Can anyone make mention to something I am doing wrong here? It looks to get hung up when I attempt to parse into array.

 

if (event.value!=null){     var values = event.value;     var valueInfo = values.toString();     var emailArray = valueInfo.Split(';'); 
$.each(emailArray, function(i,val){     if(!eMailValidate(val)){     app.alert("Incorrect Format");     event.rc = false;     }   });
}

 

thanks in advance.

 

 

Tony


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>