I am using jquery ui 1.12.0. I want to change the z-index after someone clicks in a text box and selects a date.
js Built-in example
I tried adding below, but really don't understand what _updateDatepicker_original and _updateDatepicker are:
$.datepicker._updateDatepicker_original = $.datepicker._updateDatepicker; $.datepicker._updateDatepicker = function(inst) { $.datepicker._updateDatepicker_original(inst); var afterShow = this._get(inst, 'afterShow'); if (afterShow) afterShow.apply((inst.input ? inst.input[0] : null)); }
and then calling it as follows:
$('.AddDatePicker').datepicker({ afterShow: function () { $('.ui-datepicker').css('z-index', '1000001'); } });
However, the z index does not change until I change the month.
is there an "afterShow" in jQuery UI datepicker? no answers ...
Any pointers, clues, clues will be appreciated. Thanks:)
source share