Datepicker z-index issue?
Ref: http://stackoverflow.com/questions/11533161/jquery-ui-datepicker-change-z-index
Solution:
var date2 = $( "#end_date" ).datepicker({
defaultDate: new Date(),
changeMonth: true,
numberOfMonths: 1,
minDate: lastYear,
dateFormat: 'yy-mm-dd',
beforeShow: function() {
setTimeout(function(){
$('.ui-datepicker').css('z-index', 99999999999999);
}, 0);
}
});
评论
发表评论