I\'m trying to call an action method in an MVC application using jQuery. Basically what I want is to take the value of a couple of input fields and call the action method by cli
var number = $('#selectWeekId').val();
var year = $('#selectYearId').val();
var url = '<%: Url.Action("Edit") %>';
$.get(url, { number: number, year: year }, function (data) {
alert('Test');
});