The following example illustrates a bug in jquery ui 1.8.2 date picker. If you click the "New Event" button, it will add two date picker instances to the unordered list, within a li element. If you then click in the second date box, the datepicker instance will open on the first, though both instances have different IDs.