Skip to content

Commit e56c573

Browse files
Chealermgol
authored andcommitted
load: Fix singular references to matched elements
Fixes jquery#1125 Closes jquery#1126
1 parent 812e132 commit e56c573

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entries/load.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
<desc>A callback function that is executed when the request completes.</desc>
1919
</argument>
2020
</signature>
21-
<desc>Load data from the server and place the returned HTML into the matched element.</desc>
21+
<desc>Load data from the server and place the returned HTML into the matched elements.</desc>
2222
<longdesc>
2323
<div class="warning">
2424
<p>Note: Prior to jQuery 3.0, the event handling suite also had a method named <code><a href="/load-event/">.load()</a></code>. Older versions of jQuery determined which method to fire based on the set of arguments passed to it.</p>
2525
</div>
26-
<p>This method is the simplest way to fetch data from the server. It is roughly equivalent to <code>$.get(url, data, success)</code> except that it is a method rather than global function and it has an implicit callback function. When a successful response is detected (i.e. when <code>textStatus</code> is "success" or "notmodified"), <code>.load()</code> sets the HTML contents of the matched element to the returned data. This means that most uses of the method can be quite simple:</p>
26+
<p>This method is the simplest way to fetch data from the server. It is roughly equivalent to <code>$.get(url, data, success)</code> except that it is a method rather than global function and it has an implicit callback function. When a successful response is detected (i.e. when <code>textStatus</code> is "success" or "notmodified"), <code>.load()</code> sets the HTML contents of the matched elements to the returned data. This means that most uses of the method can be quite simple:</p>
2727
<pre><code>
2828
$( "#result" ).load( "ajax/test.html" );
2929
</code></pre>

0 commit comments

Comments
 (0)