O'Reilly logo

jQuery UI Cookbook by Adam Boduch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying month-to-month effects

When the datepicker selector is shown, we're typically displaying one month at a time for the user. If the user needs to navigate backward through time, they do so using the previous month button. Likewise, they can move forward through time using the next month button. The datepicker widget just empties out the datepicker div when this happens, regenerates some HTML for the calendar and inserts that. This all happens very quickly, essentially instantaneously as far as the user is concerned.

Let's liven up this month-to-month navigation a little bit by injecting some effects into the datepicker internals.

Getting ready

We can use any datepicker widget for this experiment, but it's probably more straightforward to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required