this is a reserved word in JavaScript, so you cannot use it in the signature of a function argument.
I would probably change this code to ...
$('#skillcount').change(function() { var value = parseFloat($(this).val()) + 1; });
jsFiddle .
... and release the inline event handler.
To check if parseFloat() returns NaN , use isNaN() .
source share