开发者

Trigger the second jquery calendar

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜