开发者

Trigger the second jquery calendar

开发者 https://www.devze.com 2023-04-07 16:11 出处:网络
I have two jquery calendars in my page( #from and #to). My question is how to popup the second calendar(\"#to\"), after selecting the dat开发者_JAVA百科e in first calendar (\"#from\") popup.

I have two jquery calendars in my page( #from and #to). My question is how to popup the second calendar("#to"), after selecting the dat开发者_JAVA百科e in first calendar ("#from") popup.

Thanks in advance.


You need to call .datepicker( "show" ) function in onSelect function

$( "#from" ).datepicker({
   onSelect: function( selectedDate ) {
      $("#to").datepicker( "show" );
   }
});
0

精彩评论

暂无评论...
验证码 换一张
取 消