Can't get jquery $ajax to call .NET MVC 2 controller method
问题 I'm new to jquery and ajax - just can't seem to get this to work! See my related question: Use Json and AjaxLink to Toggle Link Values in ASP.NET MVC 2 Here's my jquery: $(function () { $("div[id^=add]").click(function (ev) { ev.preventDefault(); updateMe(this.id.split('_')[1], "AddRequirement"); }); $("div[id^=remove]").click(function (ev) { ev.preventDefault(); updateMe(this.id.split('_')[1], "RemoveRequirement"); }); }); function updateMe(myId, myAction) { $.ajax({ type: "POST", url: