Conflict with two jquery datepickers on same page

后端 未结 10 837
萌比男神i
萌比男神i 2021-01-07 19:37

So here is the setup: I have two jquery datepickers, inside a jquery tab, inside a jquery modal dialog window:

\\---/\\---/\\---/_______________
/                    


        
10条回答
  •  自闭症患者
    2021-01-07 20:00

    This is a total shot in the dark but have you tried initialising each one seperately? Something like the following

    $(function() {
        $('.datepicker').each(function(){
            $(this).datepicker();
        });
    });
    

    It's probably what the others have mentioned and you are encountering some form of interference with your code, but it's worth a quick shot.

提交回复
热议问题