I have multiple text fields that, once filled, the final text field is updated automatically via javascript, my problem is that I'd like to format this last field as currency but I have no idea where to start.
Googled for days already. :(
Here's the JavaScript code:
function startCalc(){
  interval = setInterval("calc()",1);
}
function calc(){
  one = document.myform.numberof_golfers2.value;
  two = document.myform.numberof_golfers3.value;
  three = document.myform.selected_Rate.value;
  document.myform.Costs_Total.value = (one * 13040) + (two * 10280) + (three * 1);
}
function stopCalc(){
  clearInterval(interval);
}
 
     
    