In my MVC3 (Razor) application i have a page which contains a form.
@using (Html.BeginForm("SaveReceipt", "ClinicInvoiceReceipt", FormMethod.Post, new { id = "form1" }))
{ }
Like above. In the same page i have Jquery model popup and it contains a button.
I want to submit the form form1 on the button click in the popup.
i tried
$("#ReceiptSave").click(function (e) {
e.preventDefault();
$('#ConfirmationDiv').dialog('close');// for closing popup
$("#form1").submit();
});
But it does not works. If anybody know the reason please help me. am stuck on this.
In error console it shows the following error

1 Answer