#4202 closed enhancement (worksforme)
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'.
Change History (3)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
See comment by kbwood.
Note: See
TracTickets for help on using
tickets.
You can open have your button open the datepicker attached to an input with the following:
$(input).datepicker('show');