Tuesday, May 8, 2012

Javascript function

function emailCheck() { var email_race_0 = document.getElementById("email_race_0").value; var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; if(reg.test(email_race_0) == false) { alert('Invalid Email Address'); return false; } } function isAlphaOrParen(str) { return /^[a-zA-Z()]+$/.test(str); } function emty_value_space(str_value) { if(str_value=='' || !str_value.match(/[^\s]/)) {return false;}else{return true;} } function isNumeric(v)...
Read More »