I would like to display loading indicator while data is loading. below is my current codes:
$.ajax({
type: "POST",
url: "URL",
data: dataString,
cache: false,
success: function(html) {
$("#div").html(html);
}
});
What should I do?
$.ajax(...)and hide/remove it onsuccess()anderror()