JSFiddle - React, Tailwind, and code Playground
by danheberden
HTML
<div id="message"></div>
<div id="context"></div>
JavaScript
$( '#message' ).ajaxComplete( function() {
$(this).html( 'completezors!' );
});
$.ajax({
url: '/echo/html/',
global: true,
context: $( '#context' ),
complete: function() {
$(this).html( 'ajax done' );
}
});