$(document).ready(function() { $(".numbersonly").keyup(function (event) { var value = jQuery(this).val(); value = value.replace(/[^0-9]+/g, ''); jQuery(this).val(value); }); });
Last Updated on October 26, 2015
$(document).ready(function() { $(".numbersonly").keyup(function (event) { var value = jQuery(this).val(); value = value.replace(/[^0-9]+/g, ''); jQuery(this).val(value); }); });