Having an issue with commas and values.
I have a value that keeps changing all the time from checkboxes, sliding from jQuery ui slider and keyup functions. I want to add commas to the total that is being changed each time rather than building it into each function. If I have to build it into each function, I am not opposed to that either though. The end value just needs to have commas in it.
Here’s a fiddle: http://jsfiddle.net/ZSeHU/
Any thoughts here?
Replace
$("#increasedRevenueValue").val(value)withsetIncRevenueValue(value)Inside, use
where addCommas is the following function:
This is the source: http://www.mredkj.com/javascript/nfbasic.html