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:

<select ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.