Order is important.
$('#myCalendarInput').datepicker();
$('#ui-datepicker-div').draggable();
. @JZ . JZ, , , ( DIV ). popup datepickers draggable. datepicker DIV ( ui-datepicker-div) , datepicker. DIV SPAN , DIV/SPAN, .ui-datepicker, . datepicker , , , JZs , .
:
<script type="text/javascript">
$(document).ready(function() {
$('#calendar').datepicker();
$('#calendar2').datepicker();
$('#calendar3').datepicker();
$('#ui-datepicker-div').draggable();
});
</script>
<div>
Calendar: <input id="calendar" type="text" /><br /> <-- draggable
Calendar2: <input id="calendar2" type="text" /><br/> <-- draggable
Fixed calendar: <div id="calendar3"></div> <-- fixed
</div>