jQuery Input Format Plugin Demos

Input default

$(document).ready(function(){
	$('#default').inputNumber();
});

Input without Negative value

$(document).ready(function(){
	$('#no-negative').inputNumber({ allowNegative: false });
});

Input without Decimals value

$(document).ready(function(){
	$('#no-decimal-negative').inputNumber({ allowDecimals: false, allowNegative: false });
});

Max Decimals value 2 point

$(document).ready(function(){
	$('#max-two-decimal').inputNumber({ maxDecimalDigits: 2 });
});

Allow Leading Zero

$(document).ready(function(){
	$('#allow-leading-zero').inputNumber({ allowLeadingZero: true, thousandSep: '', allowDecimals: false, allowNegative: false });
});
// Or using shortcut
$(document).ready(function(){
	$('#allow-leading-zero').inputNumber({ allowLeadingZero: true, numericOnly: true });
});