jQuery UI datepicker opens automatically within dialog

后端 未结 12 1714
面向向阳花
面向向阳花 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:43

    I know this is a old question, but one solution that worked for me was triggering off a calendar icon:

    $( ".date" ).datepicker({
      showOn: "button",
      buttonImage: "../css/imgs/calendar.gif",
      buttonImageOnly: true
    });
    

提交回复
热议问题