From 78b92ab5e7ed5d6b051cbf364883d03dc6b9b210 Mon Sep 17 00:00:00 2001 From: cTn Date: Fri, 5 Dec 2014 12:49:47 +0100 Subject: [PATCH] input validation works much better while using input event to do the manipulation --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 225cab8d..ece22844 100644 --- a/main.js +++ b/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')),