skip to Main Content

how to get data from ajax response? – Jquery ajax

i am calling ajax and my success function says success: function (data) { console.log(data.data); }, And my response is {"data":{"response":"{"ResCode":"TPB009","ResStatus":1}","http_code":200}} i want to fetch ResCode so i tried this console.log(data.data.response['ResStatus']); console.log(data.data.response['ResCode']); but it is undefine any help?

VIEW QUESTION

how to call aspx.vb method using ajax – Jquery ajax

how to call vb.net method from ajax I send array as parameter in the ajax and it's not working this is the ajax and javascript code <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript"> $("#Button1").click(function () { var Years = document.getElementById("Options").querySelectorAll(".selected"); $.ajax({ type: "POST",…

VIEW QUESTION
Back To Top
Search