0

我的表单上有一个隐藏的页面元素,其 id 名为remainingpoints。我也有以下 javascript 代码:

$(document).ready(function () {
    $("#FileSubmit").click(function (event) {

    var remainingpoints = document.getElementById("remainingpoints").value;

    if (parseInt(remainingpoints) == 0)
            alertString += "PARTICIPATION POINTS: You have already assigned your course quota\nof " + '@Model.Course.ParticipationPoints' + " participation points to this course, you cannot add further\ncontent without making amendments"
        else if (parseInt(contentpointsvalue) > parseInt(remainingpoints))
        {
            alertString += "PARTICIPATION POINTS: You already have " + '@Model.CoursePointsToDate' + "/" + '@Model.Course.ParticipationPoints' + " points assigned to this course, you can only add a maximum of " + '@Model.CoursePointsRemaining' + " more but this video\n has a participation value already assigned for " + contentpointsvalue + " points which would \nexceed the total value allocated to the course"
        }
    });
});

验证正在 Chrome、Firefox、Opera 和 Safari 上触发,但由于某种原因,客户端验证在 IE10 上不起作用。谁能明白为什么会这样?

4

0 回答 0