File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 19
19
<p >Attach the event handler to the document:</p >
20
20
<pre ><code >
21
21
$( document ).ajaxError(function() {
22
- $( "div .log" ).text( "Triggered ajaxError handler." );
22
+ $( ".log" ).text( "Triggered ajaxError handler." );
23
23
});
24
24
</code ></pre >
25
25
<p >Now, make an Ajax request using any jQuery method:</p >
Original file line number Diff line number Diff line change 18
18
</code ></pre >
19
19
<p >Attach the event handler to the document:</p >
20
20
<pre ><code >
21
- $( ".log" ).ajaxStop(function() {
22
- $( this ).text( "Triggered ajaxStop handler." );
21
+ $( document ).ajaxStop(function() {
22
+ $( ".log" ).text( "Triggered ajaxStop handler." );
23
23
});
24
24
</code ></pre >
25
25
<p >Now, make an Ajax request using any jQuery method:</p >
You can’t perform that action at this time.
0 commit comments