I haven't been able to find an effective solution on the Internet. Here I provide a seemingly speculative solution:
$("#txtFillInDate").datepicker({
monthNames: ['January', 'February', 'March', 'April', 'May ', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
dayNamesMin: ['Day', '一', '二', '三', '四', '五', '六'],
dateFormat: 'yy-mm-dd',
beforeShow: function () {
setTimeout(
function () {
$('#ui-datepicker-div').css("z-index", 15);
}, 100
);
}
});
The key lies in the use of beforeShow. You can understand it at a glance, so I won’t go into details here. I hope it can be helpful to you.