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" );
}
});
精彩评论