jeudi 16 novembre 2023

HTML5 phone number validation with pattern 1-XXX-XXX-XXXX

I want phone number to be in either two formats

xxx-xxx-xxxx

or

1-xxx-xxx-xxxx

if there is area code , it should be 1

can anyone help me with reg required pattern ?

thanks in advance

tried all possible way but no luck . please help

Aucun commentaire:

Enregistrer un commentaire