<input type="number">
min
and max
set
<input type="number" min="5" max="10">
min
and
max
attributes.
<input type="number" id="callback">
<output id="callbackOutput"><output>
var incremented = 1,
decremented = 1;
$('#callback').niceNumber({
onIncrement: function ($currentInput, amount) {
$('#callbackOutput').text(
'Incremented ' + incremented++ + ' Times.',
);
},
onDecrement: function ($currentInput, amount) {
$('#callbackOutput').text(
'Decremented ' + decremented++ + ' Times.',
);
},
});