I want to know how or what should be done in implementing loading image before my dialog pop’s out? Any gif’s will do. what function or line of code should I add in my function?
————my jquery code:————
$(".red_img").click(function() {
});
$("#red_form").dialog({
modal:true,
buttons: {
"Done": function() {
},
Cancel: function() {
$(this).dialog("close");
}
}
});
$("#red_form").show(500);
});
You could show your loading image at the beginning of your click event, and then hide the image just before displaying your dialog:
where
#your_loading_imageis your loading image, like for example: