It is interesting. Even calling the show () method of the datepicker widget results in the same behavior.
It seems that the onSelect is called in a rather difficult situation, you cannot rely on events and triggering focus or forcing the pop-up to be displayed from the callback itself.
However, launching the focus function from a function with a slight delay works:
$("input.date").datepicker({ onSelect: function() { window.setTimeout($.proxy(function() { $(this).next(".date").focus(); }, this), 10); } });
You can check it in the updated script .
source share