Question: Assume that crustStyle is a selection list element in a web form for which you are writing JavaScript code. What statement can you add to
Assume that crustStyle is a selection list element in a web form for which you are writing JavaScript code. What statement can you add to the following to run the updateOrder function each time the user changes their crust style selection?
let orderForm document.forms.orderForm;
let crustStyle orderForm.elements.crustStyle;
a
orderForm.elements.crustStyle.addEventListenerupdateOrder;
b
orderForm.elements.crustStyle.oninput updateOrder;
c
orderForm.elements.crustStyle.addEventListenerinput updateOrder;
d
orderForm.elements.crustStyle.onchange updateOrder;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
