Skip to content

Commit 52a1b7d

Browse files
committed
change: note that JS-initiated change does not trigger change event
Fixes gh-345 Closes gh-617
1 parent 2f2a30a commit 52a1b7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

entries/change.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ $( "#other" ).click(function() {
5252
</code></pre>
5353
<p>After this code executes, clicks on <samp>Trigger the handler</samp> will also alert the message. The message will display twice, because the handler has been bound to the <code>change</code> event on both of the form elements.</p>
5454
<p>As of jQuery 1.4, the <code>change</code> event bubbles in Internet Explorer, behaving consistently with the event in other modern browsers.</p>
55+
<div class="warning">
56+
<p><strong>Note: </strong>Changing the value of an input element using JavaScript, using <a href="/val"><code>.val()</code></a> for example, won't fire the event.</p>
57+
</div>
5558
</longdesc>
5659
<example>
5760
<desc>Attaches a change event to the select that gets the text for each selected option and writes them in the div. It then triggers the event for the initial text draw.</desc>

0 commit comments

Comments
 (0)