Jquery Ui Datepicker month/year dropdown is not working in boostrap modal popup in firefox

QuestionsCategory: QuestionsJquery Ui Datepicker month/year dropdown is not working in boostrap modal popup in firefox
hardeep asked 6 days ago

Jquery Ui Datepicker month/year dropdown is not working in boostrap modal popup in firefox

1 Answers
therichpost answered 6 days ago

Here you can check the working and tested exmaple code:
    $(“#birthday”).datepicker({
        beforeShow: function(input, inst) {
          $(document).off(‘focusin.bs.modal’);
        },
        onClose:function(){
          $(document).on(‘focusin.bs.modal’);
        },
        changeMonth: true,
        changeYear: true
    });

hardeep replied 6 days ago

Thank you, it is working now

therichpost replied 6 days ago

//just need to add
beforeShow: function(input, inst) {
$(document).off(‘focusin.bs.modal’);
},
onClose:function(){
$(document).on(‘focusin.bs.modal’);
}

Your Answer

12 + 3 =