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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -