Adding a 2-up Calendar to Your Page

Sometimes you only need one calendar: appointments, restaurant reservations, what have you. But 2-up calendars are also seen frequently; they’re used for events that begin and end on different dates. You’ll often see them used when making hotel reservations and purchasing plane tickets, for instance. Script 14.7 (HTML), Script 14.8 (CSS), and Script 14.9 (JavaScript) show you how to do a two-up calendar (Figure 14.5).

Figure 14.5. Click the small calendar icon next to the first set of pop-up menus to bring up the dual calendar, allowing you to choose the first date.

To add a two-up calendar:

1.
<select ...

Get JavaScript and Ajax for the Web: Visual QuickStart Guide, Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.