How to control positioning of jQueryUI datepicker

前端 未结 13 1355
一整个雨季
一整个雨季 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

    bind focusin after using datepicker change css of datepicker`s widget wish help

    $('input.date').datepicker();
    $('input.date').focusin(function(){
        $('input.date').datepicker('widget').css({left:"-=127"});
    });
    

提交回复
热议问题