Home › Forums › JavaScript › Restricted the input field › Re: Restricted the input field
February 5, 2013 at 4:07 am
#105684
Bert
Participant
Ok. Then jQuery:
$(‘.numbers’).keypress(function(key) {
if(key.charCode < 48 || key.charCode > 57) return false;
});