Question: JAVASCRIPT Need help with the function for a simple tip calculator Write a function that will examine the text field that asks for the cost
JAVASCRIPT
Need help with the function for a simple tip calculator
Write a function that will examine the text field that asks for the cost of the meal. Retrieve this value. Then determine which of the 3 radio buttons was checked. Depending on which button was clicked, set the tip percentage as appropriate (i.e. 0.2, or 0.15, or 0.1).
Output that value to the div section labeled output.
!DOCTYPE html>
// YOUR FUNCTION WOULD GO HERE
Common Question, Fall 2018
What was the cost of your meal?
How would you rate the service?
Great (20%)
Okay (15%)
Poor (10%)
onclick="calcTip()" >
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
