input validation works much better while using input event to do the manipulation

10.3.x-maintenance
cTn 2014-12-05 12:49:47 +01:00
parent e87c0ca4ee
commit 78b92ab5e7
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ $(document).ready(function () {
}
});
$("#content").on('change', 'input[type="number"]', function () {
$("#content").on('input', 'input[type="number"]', function () {
var element = $(this),
min = parseFloat(element.prop('min')),
max = parseFloat(element.prop('max')),