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>

IT-130 Exam

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!