input validation works much better while using input event to do the manipulation
parent
e87c0ca4ee
commit
78b92ab5e7
2
main.js
2
main.js
|
@ -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')),
|
||||
|
|
Loading…
Reference in New Issue