FloatNumber format
A FloatNumber format plugin that converts a simple integer number into float number with a defined number of decimal digits.
Usage:
$(function(){
// using numeric mask by Sam Collett (http://www.texotela.co.uk)
$(".numeric").numeric(",");
// floatnumber(separator, precision); (http://www.tuliofaria.net/jquery-floatnumber/)
$(".numeric").floatnumber(",",2);
});
Where .numeric is any input text with numeric class
评论