Enter Only Numbers and without Decimal Values Using jQuery
This numbersonly class can be used in input box where this class allows only numbers and it doesn't allow decimal
$("input.numbersonly").keypress(function(event) {
return /\d/.test(String.fromCharCode(event.keyCode || event.which || event.charCode));
});
Enter Only Numbers and without Decimal Values Using jQuery
Reviewed by Ashok Sen
on
01:39:00
Rating:
No comments:
Post a Comment