mercredi 10 août 2016

JQuery number only validation

$('.alphaOnly').bind('keypress', function(event){
     var regex = new RegExp("^[ A-Za-z-.']*$");
     validation(event, regex);
});

This is my validation for number only in a input. It works prefectly on desktop, iphone but not in android specifically samsung phone.

Does anyone of you ever encountered this kindof problem?

Aucun commentaire:

Enregistrer un commentaire