Jquery UI Datepicker不显示 [英] Jquery UI Datepicker not displaying

查看:158
本文介绍了Jquery UI Datepicker不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新

我已经恢复到Jquery 1.3.2,一切正常,不知道是什么问题,因为我没有改变任何其他除了jquery和ui库版本。

更新结束

我有一个问题与 JQuery UI datepicker 。 datepicker被附加到一个类,该部分正在工作,但是没有显示datepicker。

I having an issue with the JQuery UI datepicker. The datepicker is being attached to a class and that part is working but the datepicker is not being displayed.

这是我使用的datepicker代码和内联样式当我在具有类.datepicker的输入框中单击时生成。

Here is the datepicker code I am using and the inline style that is being generated when I click in the input box that has the class ".datepicker".

$('.datepicker').datepicker({dateFormat:'dd/mm/yy'});

display:none;
left:418px;
position:absolute;
top:296px;
z-index:1;

如果我更改显示:none显示:阻止datepicker工作正常,除了dosen't close当我选择一个日期。

If I change the display:none to display:block the datepicker works fine except it dosen't close when I select a date.

正在使用的Jquery库:

Jquery libraries in use:


  • jQuery JavaScript图书馆v1.4.2

  • jQuery UI 1.8 jQuery UI小部件1.8

  • jQuery UI鼠标1.8 jQuery UI

  • 位置1.8 jQuery UI Draggable 1.8

  • jQuery UI Droppable 1.8 jQuery UI

  • Datepicker 1.8

  • jQuery JavaScript Library v1.4.2
  • jQuery UI 1.8 jQuery UI Widget 1.8
  • jQuery UI Mouse 1.8 jQuery UI
  • Position 1.8 jQuery UI Draggable 1.8
  • jQuery UI Droppable 1.8 jQuery UI
  • Datepicker 1.8

推荐答案

这是新的css文件不起作用。尝试在您的标题中包含旧的1.7。* css文件,然后重试。

it's the css file in the new one doesn't work. Try to include the old 1.7.* css file on your header too, and try again.

此外,您是否尝试使用.datepicker(show)权限之后构建?

Also, did you try to do a .datepicker( "show" ) right after it constructed?

这篇关于Jquery UI Datepicker不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆