Wednesday, June 22, 2016

jQuery limit to 2 decimal places

var amount = $("#textid").slider("value") * 1.60;
$("#textboxid2").val('$' + amount.toFixed(2));