Код: Выделить всё
jQuery('.numbersOnly').keyup(function () {
this.value = this.value.replace(/[^0-9\.]/g,'');
});
Подробнее здесь: https://stackoverflow.com/questions/376 ... increments
Код: Выделить всё
jQuery('.numbersOnly').keyup(function () {
this.value = this.value.replace(/[^0-9\.]/g,'');
});