Función JavaScript para validar el número de telefono.
function isValidPhoneNumber(ph) {
if (ph == null) {
return false;
}
var stripped = ph.replace(/[\s()+-]|ext\.?/gi, "");
return ((/\d{10,}/i).test(stripped));
}
Tags: Java Script, phone, validation
Marzo 13th, 2010 at 04:50
Great article! I bet a lot of work went into this post.