Implementing jQuery DatePicker in Bootstrap modal

后端 未结 7 1275
别那么骄傲
别那么骄傲 2020-12-01 13:41

Created jsfiddle for my issue http://jsfiddle.net/sudiptabanerjee/93eTU/

In modal window issue is on Change Month and Change Year combos.

a) IE 11: everythin

7条回答
  •  暖寄归人
    2020-12-01 14:31

    Found an easier way to fix this datepicker issue. Make sure the JS is below jquery, jqueryUI lib calls.

    $("body").delegate("#date1", "focusin", function () {
          $(this).datepicker(
            {
              dateFormat: "yy-mm-dd",
              changeMonth: true,
              changeYear: true
            }
          );
    

    });

    $( "#date1" ).datepicker();
    

提交回复
热议问题