Hi guys,
I currently have a code that calculates certain inputs on my website. I want to add a $ and decimal to the final number
$w.onReady(function () {
$w("#input9").value = '75';
$w('#button1').onClick(function () {
console.log("button has been pressed")
$w('#input9').value = "" + (Number($w('#dropdown4').value) + Number($w('#dropdown3').value) + Number($w('#dropdown5').value)+ Number($w('#dropdown6').value) + 75.00 ) ;
console.log("calculation finished")
})
This is my current code and someone help me in the right direction to add the $ and decimal to #input9
If the number is always an integer (with no decimals), then you should be able to do the following:
$w('#input9').value = '$' + $w('#input9').value + '.00'