2 decimal places in Javascript/jQuery
19 Apr 2013I always forget how to format a number as 2 decimal places in Javascript/jQuery, its extremely simple, just use the unmemorable toFixed()
function - refer below is an example
$("#total"+row_number).html($total,toFixed(2));