The datepicker in jQueryUI renders with a dynamic position. It renders according to its css if there\'s enough room for it, but if there isn\'t enough window space it tries
$("first-selector").datepicker().bind('click',function () { $("#ui-datepicker-div").appendTo("other-selector"); });