I've got an MVC 4 app. I have the following JavaScript function that fires whenever a change is made to an element with an Id of 'file'. The submit works fine. However, I would like to submit to a specific action method on the current controller and not the method that is defined in the HTML.BeginForm definition. I'm fairly new to all this and am not sure how to go about doing this.
How can I change this code to submit to a named action method on my controller?
$(function () {
$("#file").change(function () {
$("form").submit();
});
});