Twitter Bootstrap Datepicker within modal window

后端 未结 22 1801
旧时难觅i
旧时难觅i 2020-11-29 02:42

I am currently using the Twitter Bootstrap framework, and when using the modal windows I cannot get over js elements to work like datepicker or validation, though chosen and

22条回答
  •  一生所求
    2020-11-29 03:19

    I had this error, because i scrolled bottom. Datepicker had wrong top position in fixed. I just use it now like:

    $('#myModal').on('show.bs.modal', function (e) {
                $(document).scrollTop(0);
    });
    

    and its working fine now.

提交回复
热议问题