deepa ashwi

deepa ashwi

  • NA
  • 109
  • 602.5k

validation for phone number in javascript

Nov 24 2013 10:35 AM
i need validation for phone number to accept only 12 digits and it should accept spaces and phonenumber should not start with digit 1
 

here is the validation i tried but here its not at all accepting 1 digit .in my case 1 should not start from first that's it.how to do?
 

var phonepat=/^[\s()+-]*([02-9][\s()+-]*){7,12}$/;

Answers (1)