Possible Duplicate:
How to change the pop-up position of the jQuery DatePicker control
How can i change the position of the UI datepicker widget??
I used the ui datepicker widget for my text box. But when i click on the calander. The datapicker is show. But the datepicker are stay on the wrong position. The datapicker must be on the left of the calander icon.
You can see it here live: You can see it here live
This is my javascript for the ui datapicker.
// Data picker
$(function () {
$('#datepicker').datepicker({
beforeShow: function(input, inst)
{
inst.dpDiv.css({marginTop: -input.offsetHeight + 'px', marginRight: input.offsetWidth + 'px'});
}
});
});