skip to Main Content

Ajax Call to ASP.NET MVC controller – Jquery ajax

The jQuery code is : var props = [ { "Name": "firstName", "Value": "firstValue" }, { "Name": "secondName", "Value": "secondValue" } ]; $.ajax({ url: '/myURL', contentType: "application/json", async: true, type: "POST", data: JSON.stringify(props), error: function (jqXHR, textStatus, errorThrown) { console.log("FAIL:…

VIEW QUESTION

WordPress ajax returns 0 only

I am using datatables in which I've implemented a <select> tag, I am trying to create a dependent dropdown but the problem is ajax returns only 0, Also when I alert(data) in success function, the alert comes up with [object…

VIEW QUESTION
Back To Top
Search