Menu
What I’m doing is calculating sales commission based on sales amount and commission rate within a function calcCommission.
I have a form in the html that the user can input their name and sales amount in and they click send and it calculates commission.
The function processSales reads input from the text boxes, converts to a number calls the function calcCommission and displays relevant data.
How do I assign call to the function processSales to the onclick event of the button send variable?