jQuery UI datepicker opens automatically within dialog

后端 未结 12 1700
面向向阳花
面向向阳花 2020-12-16 10:14

I have a datepicker which is used within the jQuery dialog object. The source of the dialog\'s content is loaded using .load(). Within the dialog I created a sc

12条回答
  •  星月不相逢
    2020-12-16 10:45

    Much simpler way I found:

    $("#dialogPopper").click(
                        function() {
                            $("#date").datepicker("disable");
                            $("#dialog").dialog("open");
                            $("#date").datepicker("enable");
                            return false;
                        }
                      );
    

提交回复
热议问题