Skip to main content

Search and Top Navigation

#6195 closed bug (worksforme)

Opened October 18, 2010 02:46PM UTC

Closed October 11, 2012 07:06PM UTC

Last modified October 11, 2012 09:15PM UTC

defaultdate doesn't work when set after initial setup for divs.

Reported by: coke Owned by:
Priority: minor Milestone:
Component: ui.datepicker Version: 1.8.5
Keywords: Cc:
Blocked by: Blocking:
Description

Given a datepicker call on an input, setting the default date works whether you set it in the the initial call to .datepicker() or after the fact with an 'option' call.

However, for a div, setting the default date only works when setting it during the .initial .datepicker({}) call. using the option call has no effect after creation.

See attached .html file that demonstrates the problem. Verified locally using the latest stable release of jquery UI, on IE8 and FF3.6.10

Attachments (1)
Change History (2)

Changed October 11, 2012 07:06PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

There's nothing for it to do in this case. The datepicker already has a date set because it's always visible. Therefore, changing the default won't do anything. If you want to change the date, then change the date, not the default.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:2

milestone: TBD

Milestone TBD deleted