Hi..... This array is used to check the domain extensions for validate a domain name....... How to write this code... Pls help.. Regards subha
function aa(valid) { var arr = new Array('.com','.net','.....................................); return valid in arr ; } and then check the result... good luck
you should use the regular pattern, it's betrer & more professional; I suggest: - RegExp Validation - Regular Expressions Taster