jeudi 19 avril 2018

Validation pattern of javascript

my validation is only input 0-9 and x,X

do not input 'space' or 'negative' numbers.

what type of pattern use??

/[^\dxX]/gi it not work on -1 , -2 ,etc

Aucun commentaire:

Enregistrer un commentaire