jquery - $ajax method does not execute for external javascript -
very stupidly question think, when put code inline works, when put on external js file can not debug after $ajax method.
$.ajax({ type: "post", contenttype: "application/json; charset=utf-8", url: 'webservice/common/bank.asmx/getbank', data: "{}", datatype: "json", async: false, success: function (data) { debugger; ///debug point not reach here $.each(data.d, function (key, value) { $("#ddllcmasterbank").append($("<option></option>").val(value.bankid1).html(value.bankname1)); }); }, error: function (result) { alert("error"); } });
Comments
Post a Comment