I am trying to get my head around MVC at the moment. What I want to do is this;
function TestClickFunc(userId) {
$.post("/Users/UpdateEmailDistributionListFlag", { id: userId });
}
However I cannot use JQuery directly in a javascript method like this. I have been hunting around for examples, but now I need to refer to you. How do I ready JQuery for this Javascript method? I want to call the UpdateEmailDistributionListFlag method on the Users controller and send a parameter userId.