我的代码/浏览器存在严重问题。 我试图在SO处实现这里提供的解决方案,但没有一个在我的工作。 这是我看过的一些:
我的问题是:我有一个不能在IE11上运行的提交按钮,但是当我使用IE Developer Tools降级版本IE8时,它工作正常。任何线索?我有一半的头发已经拉出来,因为它已经3天了,我试图让它在IE 11上工作。任何想法都是受欢迎的。
这是jquery代码:
if (isOtherValid == true) {
formsubmit = true;
$('#StupidForm').submit();
document.StupidForm.submit()
alert('Test');
form.submit();
return true;
}
}
else {
alert('You must select at least 1 CE type');
}
这是我的剃刀观点:
@model TCEO.MVC.Person.MyModel
@{
ViewBag.Title = "Course Sign Up";
}
@section Styles {
<link href="@Url.Content("~/Content/enroll_learner_validation.css")" rel="stylesheet" type="text/css" />
}
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
<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>
<h2>@Model.courseEnrollment.CourseTitle</h2>
<div style="padding-left:25px;">
@{
var namePrint = Model.FirstName;
if (!(Model.MiddleInitial == null) && Model.MiddleInitial.Length == 1)
{ namePrint = namePrint + " " + Model.MiddleInitial + ". "; }
else
{ namePrint = namePrint + " "; }
namePrint = namePrint + Model.LastName;
<span style=" font-size:18px; color:navy;">@namePrint</span>
<br /><br />
}
<h3>Update Your Account</h3>
<span style=" font-size:18px; color:navy;">Verify your information below...</span>
@{ Html.EnableClientValidation(); }
@using (Html.BeginForm("EnrollLearnerValidationCompleteForm", "Course", FormMethod.Post, new { id = "StupidForm" }))
{
@Html.ValidationSummary(true)
<fieldset>
<legend></legend>
@Html.HiddenFor(model => model.LearnerID)
@Html.HiddenFor(model => model.FirstName)
@Html.HiddenFor(model => model.MiddleInitial)
@Html.HiddenFor(model => model.LastName)
@Html.HiddenFor(model => model.AddressLine1)
@Html.HiddenFor(model => model.AddressLine2)
@Html.HiddenFor(model => model.AddressLine3)
@Html.HiddenFor(model => model.City)
@Html.HiddenFor(model => model.CountrySelectedItem)
@Html.HiddenFor(model => model.StateSelectedItem)
@Html.HiddenFor(model => model.ZipCode)
@Html.HiddenFor(model => model.courseEnrollment.AdjustRecord)
@Html.HiddenFor(model => model.Email)
</fieldset>
}