call a mvc action from jquery code example
Example: call a mvc action from jquery
$.ajax({
// edit to add steve's suggestion.
//url: "/ControllerName/ActionName",
url: '<%= Url.Action("ActionName", "ControllerName") %>',
success: function(data) {
// parse your data here
alert(data);
}
});