📅  最后修改于: 2022-03-11 15:03:58.099000             🧑  作者: Mango
//allow a number in textbox using jQuery.
jQuery('.numbersOnly').keyup(function () {
this.value = this.value.replace(/[^0-9\.]/g,'');
});