I have an ASP.Net MVC Ajax.BeginForm that correctly displays and refreshes my page when I click the submit button.
The problem is that I need additional events to do the same, for example, when they change the input text. Extra events properly represent the form, but they bypass the javascript onsubmit generated in the form tag Ajax.BeginForm.
Here is the form tag generated by Ajax.BeingForm:
<form action="/Store/UpdateCart" method="post" onsubmit="Sys.Mvc.AsyncForm.handleSubmit(this, new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace, updateTargetId: 'updatedContent' });">
And here is jQuery to bind my other events that should submit the form via Ajax:
$("#ShippingType, #ViewCart .ddl").bind("change", function() { $("#ViewCartPage form").submit() });
Any ideas on how to get these extra events to trigger onsubmit, like him to me too?
jquery asp.net-mvc
Slee
source share