I am forced to use an older version of jquery ui which is 1.8.10. The datepicker parameter in this version had an error in setting z-index, which from time to time was displayed under other controls. I just want to tweak the dp z-index so that it appears on top of other controls. I tried changing the z-index to a .js file, but that failed. I read that you should set this value in the aftershow event, because the value will be overwritten if it is earlier (not sure if this is true). Here is an example of how im creates an instance of dp ... I also bound timepicker to datepicker.
$(function () { $("input[id$='txtPreviousCutOff']").datetimepicker({ timeFormat: "hh:mm tt", stepMinute: 5 }); $("#dpimage6").click(function () { $("input[id$='txtPreviousCutOff']").datepicker("show") }); });
jquery css jquery-ui jquery-ui-datepicker jquery-ui-timepicker
user1732364
source share