math calculation returning infinity, also need to set 2 decimal places.
I am having a problem with a math calculation returning infinity and I would like to set the decomal places to 2 outside of appery i did it with .toFixed(2).
document.tipForm.splitAnswer.value = " $ " + (amount/split).toFixed(2);
Please see the pic. and I have shared the app so that you can look at the Javascript.