I have a problem in displaying the "Loading..." text in a Div using ajaxStart function, while a $.getJSON call is in progress. Could you please suggest , what am i doing wrong here ?
<div id='loading' style='display:none' />
$(document).ready(function() {
$("#loading").ajaxStart(function() {
$(this).show();
});
$.getJSON('xxx.ashx?tabID=' + 0,
function(statuses) {
$.each(statuses,
function() {
$("#ddlStatus").append($("<option></option>").val(this['ID']).html(this['Status']));
});
});
}