I have a simple form created using Ajax.BeginForm
:
<% using (Ajax.BeginForm(\"Update\", \"Description\", new { id = Model.Id
Simply place normal button indide Ajax.BeginForm and on click find parent form and normal submit. Ajax form in Razor:
@using (Ajax.BeginForm("AjaxPost", "Home", ajaxOptions))
{
}
and Javascript:
function submitParentForm(sender) {
var $formToSubmit = $(sender).closest('form');
$formToSubmit.submit();
}