function callMethod() {
document.myForm.submit();}
And here’s the form:
<% using (Html.BeginForm("MyMethod", "Account", FormMethod.Post, new { name = "myForm" }))
{ %>
//bla
<input type="submit" onclick="return callMethod();" value="OK" />
And MyMethod is not getting hit. Why is this?
Try:
Or change buttons type from
submittobutton, give it an ID and code:But I actually don’t get the sense of what you are doing…