当我在 BlockUI(弹出窗口)中打开 jQuery UI 日期选择器并尝试更改月份和年份时,下拉菜单不会打开。它在弹出窗口中运行良好,但在日期选择器之外。
HTML:
<div class="popup">
Date Picker<input type="text" class="datepicker" />
</div>
jQuery:
$(document).ready(function(e) {
$.blockUI({
message:$('.popup'),
focusInput: false,
onBlock:function(){}
});
$( ".datepicker" ).datepicker({
dateFormat: 'dd-mm-yy',
changeYear: true,
changeMonth: true,
yearRange: 'c-10:c+3',
showButtonPanel: false
});
});