exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 18 discussion

Actual exam question from Microsoft's 70-480
Question #: 18
Topic #: 4
[All 70-480 Questions]

You develop an HTML5 webpage. You have the following HTML markup:

You need to call the click event for the addOneItem button a determined number of times when the user clicks the addBoxOfItems button.
Which code segment should you add to the webpage?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
jQuery provides a way to trigger the event handlers bound to an element without any user interaction via the .trigger() method. jQuery's event handling system is a layer on top of native browser events. When an event handler is added using .on( "click", function() {...} ), it can be triggered using jQuery's .trigger( "click" ) because jQuery stores a reference to that handler when it is originally added. Additionally, it will trigger the JavaScript inside the onclick attribute.
Reference: Triggering Event Handlers

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ziemcd
4 years, 8 months ago
I dont understand this qeustion
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...