Hi
I guess this is a pretty easy one :). I have an aspnet mvc view with a Beginform, that specifies an action and controller to hit on submit. But on submit I want to call a service using jquery to get some data and then submit those data with the form.
Currently I have a submit button on the form where the onclick event of the button calls the javascript method. depending of what I get of result from the method I want the form to be submitted to the specified action.
Now I can't get this to work, is it the right way to do this or should I instead make a post using jquery? I think it would be nice to use what I have already specified as action/controller in the form