jQuery datapicker appearing behind twitter bootstrap modal

后端 未结 3 594
孤街浪徒
孤街浪徒 2021-01-05 01:54

I am using Bootstrap v2.3.2 and jQuery Datepicker v1.10.0,

On a modal I am trying to make use of the datepicker and it is appearing behind the modal on Firefox and

3条回答
  •  被撕碎了的回忆
    2021-01-05 02:46

    This answer covers the issue.

    This is a z-index issue. Normally applying a higher z-index via CSS would work, however jQuery resets the CSS each time the Datepicker UI is drawn.

    The solution re-applies the CSS each time it's drawn by using the beforeShow property.

提交回复
热议问题