0

如果脚本像往常一样定位,我有一个大问题

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>

我无法从 js 提交:

$('#table').get(0).setAttribute('action', '@Url.RouteUrl(new { controller = "Home", action = "Domain" })'); // it's work
$('#table').submit(); // this not work!!!
4

1 回答 1

0

这里说提交方法“只能附加到<form>元素”。那么问题不在于脚本顺序

于 2012-08-29T15:03:13.097 回答