开发者

How can I add datepicker into jQuery modal dialog box in Rails?

开发者 https://www.devze.com 2023-04-09 21:23 出处:网络
I add a datepicker into my modal dialog box. but when I click on the date picker, it always display behind the modal dialog box. How can I load it inside the jQuery modal dialog box? Following i开发者

I add a datepicker into my modal dialog box. but when I click on the date picker, it always display behind the modal dialog box. How can I load it inside the jQuery modal dialog box? Following i开发者_运维知识库s my code to load date picker...

<%= calendar_date_select_tag "event[start_at]", "", :valid_date_check => "date.getDay() != 0 && date.getDay() != 6  && date.stripTime() > (new Date()).stripTime()" %>    

I am using date picker plug-in in my application..


Sounds like the z-index of the modal box is higher than the datepicker

make the css z-index for the datepicker higher than the modal box.

example css:

.modal {
  z-index: 9990;
}

.datepicker {
  z-index: 9999;
}

Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消