I need to validate a phone number in javascript. The requirements are:
they should be 10 digits, no comma, no dashes, just the numbers, and not the
function validate(phoneString){ reg = /^([+|\d])+([\s|\d])+([\d])$/; return reg.test(phoneString); }