Skip to content

Commit be500ee

Browse files
committed
fix "html" for "markup" custom code wrapper in "Triggering Event Handlers" article
1 parent cf2eb0f commit be500ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/events/triggering-event-handlers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ When an event handler is added using <code>.click(fn)</code> or <code>.on("click
1414
because jQuery stores a reference to that handler when it is originally added. Additionally, it will trigger the javascript inside the "onclick" attribute. The <code>.trigger()</code> function cannot be used to mimic native browser events,
1515
such as clicking on a file input box or an anchor tag. This is because, there is no event handler attached using jQuery's event system that coorespond to these events.
1616

17-
<html caption="Anchor tag example">
17+
<markup caption="Anchor tag example">
1818
<a href="http://learn.jquery.com">Learn jQuery</a>
19-
</html>
19+
</markup>
2020

2121
<javascript caption="This will not change the current page">
2222
$('a').trigger('click');

0 commit comments

Comments
 (0)