How to control positioning of jQueryUI datepicker

前端 未结 13 1328
一整个雨季
一整个雨季 2020-12-07 16:55

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

13条回答
  •  遥遥无期
    2020-12-07 17:22

    here is a more simple solution

    var $picker = $( ".myspanclass" ).datepicker(); // span has display: inline-block
    $picker.find('.ui-datepicker').css('margin-left', '-50px');
    

提交回复
热议问题