Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A A Moving to another question will save this response. Question 3 Assume the following HTML Form and code: Number of Apples: Number of Oranges:
A A Moving to another question will save this response. Question 3 Assume the following HTML Form and code: Number of Apples: Number of Oranges: Number of Banana: Discount: 4form onsubmit="return calo _price0 0;" clabel form"apple"> Number of Apples: label> cbrls Number of Oranges:ehabel> = "text" id="orange" " cbrl> 4label form"banana" > Number of Banana: / label> " " cbrls Discount:eflabel> coption value =55>5%10%-/option> cbrl> cbutton>Calculate Priceefbutton> c/span> - Each Apple cost 5 AED, Orange cost 6 AED and Banana cost 7AED. - Based on selected discount, elther 5% or 10% discount will applied on the total price. (hint: discount can be calculated by price - (discount/100)*price) - Show the price in the result (span with id 'r'price') - If the price is less than 12AED, color the span with the idm'price' green. If it is greater or equal 12 AED color it red. For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started