1
之外我有一定的Ajax表單並提交時,我想包括AJAX形式之外的另一種形式。讓我告訴你一個例子:MVC提交表單ajax.beginform
@using (Ajax.BeginForm("PayWithBankTransfer", "Payment", new { salesLineId = salesLine.SalesLineID }, new AjaxOptions
{
HttpMethod = "POST",
UpdateTargetId = "bankForm",
LoadingElementId = "spinnerBank"
}, new { id = "feedback-form" }))
{
//some stuff
<button type="submit">Reserve</button>
}
我有另一個標記的形式之外我想在Ajax表單提交包括
<div id="theOtherStuff">
//otherStuff
</div>
我怎麼能與AJAX一起提交其他的東西形成?
謝謝@DarinDimitrov這似乎是做伎倆:) – gardarvalur 2012-07-05 12:47:07