I want to allow users to enter in the input field only numbers or fractional numbers, for this I use the regular
$(this).val($(this).val().replace(/[^\d.,]/g, "")); But there is a problem - you can enter multiple points / commas, how to regularly filter the input of more than one point or comma?