本文介绍了在jquery对话框弹出窗口中显示jQuery日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道在jQuery对话框中显示jQuery日历的方法吗?日历似乎显示在弹出对话框的后面.我尝试调整最外面的日历div的z索引,但仍然无法正常工作.叠加层和对话框的z索引分别为1001和1002.

Does anyone know of a way to show a jQuery calendar in a jQuery dialog? The calendar seems show behind the popup dialog. I tried adjusting the z-index of the outmost calendar div, but it still didn't work. The z-index of the overlay and the dialog is 1001 and 1002 respectively.

 $('#ui-datepicker-div').css('z-index', 1005);

推荐答案

好的,我知道了.

 beforeShow: function(){
    $('#ui-datepicker-div').css('z-index', 2005);
 }

这篇关于在jquery对话框弹出窗口中显示jQuery日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 15:11