PrepAway - Latest Free Exam Questions & Answers

Hot Area:

HOTSPOT
You are developing an application in HTML5.
You have the following HTML markup.

You have the following JavaScript code.

Use the drop-down lists to select the answer choice that completes each statement.
Hot Area:

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:
Validate2will be called when the user clicks the userName text box.
Validate1will be called when the user clicks the userNameLabel label.
https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_event_stoppropagation

7 Comments on “Hot Area:

  1. SB says:

    it is wrong.
    Validate2 and click-event will be called when the user clicks the userName text box.

    Validate1, Validate2 and click-event will be called when the user clicks the userNameLabel.




    13



    5
    1. itool says:

      Thank you for the example!But you wrote $(document) instead of $(‘username’)

      I made the change: https://www.w3schools.com/code/tryit.asp?filename=FSA4LVT0NNBU

      From the example, I get:
      * If the user clicks the userNameLabel, the result is Validate1, Validate2, Validate1.
      *If the user clicks the username input text, the result is Validate2, Validate1

      Could anyone explain me why Validate1 appears again when the user clicks Validate1? Thanks!!




      1



      1

Leave a Reply