简体   繁体   English

jQuery DateTimePicker在InternetExplorer中不起作用

[英]JQuery DateTimePicker not working in InternetExplorer

I have a datepicker that works fine in Firefox but not in Internet Explorer(9). 我有一个日期选择器,在Firefox中可以正常工作,但在Internet Explorer(9)中却不能。 Can anyone spot what I am doing wrong? 谁能发现我在做什么错?

<head>
      <script type="text/javascript" src='<spring:theme code="jquery.timepicker"/>'</script>
</head>


<script type="text/javascript">
    $(function(){
        $('#globalSearchStartDate').datetimepicker({
            inline: true,
            dateFormat: 'dd-mm-yy'
        });
    });
</script>

This is the field: 这是字段:

<td width=220 nowrap="nowrap"> Date From:&nbsp;<form:input path="globalSearchStartDate"/></td>

When the page loads nothing works - no other functions ever get called. 当页面加载时,没有任何作用-永远不会调用其他函数。 If I try in Firefox it works fine or if I comment the function above out then everything else works fine. 如果我在Firefox中尝试正常运行,或者如果我对以上功能进行了注释,那么其他所有功能都可以正常运行。 Can someone please tell me what the issue is here?! 有人可以告诉我这里是什么问题吗?

Hey there is '>' missing in the script tag in your head section. 嘿,您的头部的script标记中缺少'>' Apart from IE all the browser are intelligent. 除了IE之外,所有浏览器都是智能的。 but IE has always been headache for the developer. 但是IE一直让开发人员感到头疼。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM