javascript验证没有在IE10上启动,但在所有其他浏览器上工作

时间:2013-09-18 15:16:49

标签: javascript jquery validation internet-explorer-10

我的表单上有一个隐藏的页面元素,其中包含一个名为剩余点的ID。我还有以下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上运行。谁能明白为什么会这样呢?

0 个答案:

没有答案