JSFiddle - React, Tailwind, and code Playground
by Praveen Kumar Purushothaman
HTML
<input type="text" /><img src="http://www.fct.ca/images/loading.gif" style="display: none;" />
JavaScript
$(document).ready(function(){
$("input").blur(function(){
$(this).next("img").show();
var a = $(this);
setTimeout(function(){
a.next("img").hide();
a.val("AJAX Load Complete...");
}, 1000);
});
});