开发者_如何转开发I want to submit a form like this:
<input type="button" onclick="$('#form1').submit();" value="Create" />
but the ASP.NET MVC 2 Model Validation doesn't work.
You could try simulating a click on the actual submit button:
<input type="button" onclick="$('#form1 input:submit').click();" value="Create" />
精彩评论