Skip to main content

Search and Top Navigation

#4202 closed enhancement (worksforme)

Opened February 21, 2009 12:21AM UTC

Closed May 07, 2009 11:36AM UTC

Last modified October 11, 2012 09:15PM UTC

datepicker does not allow pre-existing element to be used as a button

Reported by: NVRAM Owned by:
Priority: critical Milestone:
Component: ui.datepicker Version: 1.6rc6
Keywords: Cc:
Blocked by: Blocking:
Description

I'm working in a scenario in which I need to have the button element defined in the original HTML and ''not'' have it create it via JavaScript.

I altered the source, adding a parameter buttonElement to specify the element to be used. My change was about 8 lines different but didn't handle passing by ID (just the DOM element).

In my case it would preclude me from using the component and require finding an alternative solution; hence the almost-oxymoron 'critical enhancement'.

Attachments (0)
Change History (3)

Changed April 02, 2009 01:06AM UTC by kbwood comment:1

You can open have your button open the datepicker attached to an input with the following:

$(input).datepicker('show');

Changed May 07, 2009 11:36AM UTC by jzaefferer comment:2

resolution: → worksforme
status: newclosed

See comment by kbwood.

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

milestone: TBD

Milestone TBD deleted