Question: Open main.js file and inside the jQuery ready function create an event handler that would run once the Calculate Area button of the form is

Open main.js file and inside the jQuery ready function create an event handler that
would run once the Calculate Area button of the form is clicked. The event handler
should do the following tasks:
2.1. Retrieve the value of the Precision drop box and save it in a variable called p.
2.2. Debugging step: Open your index.html in the browsers debugger watch the
value of p and be sure that the correct value is retrieved for all possible precision
values.
2.3. Retrieve the user entered value of the radius text field and save it in a variable
called r.
2.4. Debugging step: Open your index.html in the browsers debugger watch the
value of r and be sure that the correct value is retrieved.
2.5. Compute the area of the circle using the function computearea giving it the radius
value just retrieved.
2.6. Debugging step: Open your index.html in the browsers debugger watch the
value of a and be sure that the correct value is computed.
2.7. Produce the computed area, a, to the area text field with a precision of p.
2.8. Debugging step: Open your index.html in the browser. Test the area with
different radius and precision values

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!