Streaming live at 10am (PST)

Support for currency, commas, numeral formatting


#1

Hi,

I would like to have a value box with "USD 000,000.00" in my contact form. How to do it?
I need to put a attribute? What attribute?

Thanks,


#3

I would also love this feature. Using numbers for money values would be nice if the format options were available (similar to calendar)

$123,456.78

etc


#4

as a workaround for now, this may help:


#5

#6

@PixelGeek thanks for the recommendation! Numeral.js ended up working out well! http://numeraljs.com/

<!-- Numeral.js Plugin -->
<script src="//cdnjs.cloudflare.com/ajax/libs/numeral.js/1.4.5/numeral.min.js"></script>
<script>
window.addEventListener("load", function(){
    var currencyElement = document.getElementsByClassName('carcontent__feature--text currency')[0];
    currencyElement.innerText = numeral(currencyElement.innerText).format('0,0.00');
    })
</script>

Example:


#7