I have a slideshow div, and I have a datepicker field above that div.
When I click in the datepicker field, the datepicker panel show behind slideshow div.
Based in marksyzm answer, this worked for me:
$('input').datepicker({ beforeShow:function(input) { $(input).css({ "position": "relative", "z-index": 999999 }); } });