public
Created

JQUERY: only numbers for phone input

  • Download Gist
gistfile1
1 2 3
$('.phone').keypress(function(key) {
if(key.charCode < 48 || key.charCode > 57) return false;
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.