PrepAway - Latest Free Exam Questions & Answers

How should you complete the relevant code?

HOTSPOT
You develop an HTML5 webpage that contains the following markup and code:

You have the following requirements:
Display a message if users select the first OPTION element, and then submit the form.
Do not display an alert message if users select any other OPTION element, and then submit the form.
You need to implement the madeSelection() function.
How should you complete the relevant code? (To answer, select the appropriate code segment from
each drop-down list in the answer area.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

14 Comments on “How should you complete the relevant code?

  1. M says:

    I’ve searched in all websites that offer answers to Exam 70-480 and all of them agree with the answer given here:
    if (element.value === “Please Choose”) {




    0



    0
  2. wq says:

    Has anyone notice “Display a message if users select the first OPTION element, and then submit the form.” Where is the message ? We only have focus ? and should we submit the form when it’s value is “Please Choose”?




    0



    0
  3. Azadeh says:

    This is a select So should be value, I sat the exam once before and I can tell you there are a lot of questions in regards to difference between val an text! (the trick is you should know For input elements text is invalid and you should use val)




    1



    0

Leave a Reply