Search and Top Navigation
#5958 closed feature (wontfix)
Opened August 16, 2010 04:05PM UTC
Closed April 03, 2013 03:33PM UTC
Datepicker: Allow the use of a function to determine the altField element(s)
Reported by: | jamescryer | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.11.0 |
Component: | ui.datepicker | Version: | 1.8.4 |
Keywords: | haspatch | Cc: | |
Blocked by: | Blocking: |
Description
I would like it to be possible to use a function to return the altField property for a Datepicker instance.
My use case is that I have many datepickers on a page, a selector is insufficient to return the alternative field.
The code below represents how I would like to implement this enhancement.
$(".dt-fld").datepicker({ altField: function(inst){ return $(this).siblings('.dt-hidden'); }, altFormat: 'd/m/yy' });
Attachments (0)
Change History (5)
Changed August 16, 2010 04:13PM UTC by comment:1
Changed June 26, 2012 01:22AM UTC by comment:2
type: | enhancement → feature |
---|
Changed October 11, 2012 09:04PM UTC by comment:3
milestone: | TBD → 1.11.0 |
---|
Changed October 19, 2012 09:56PM UTC by comment:4
keywords: | datepicker altField → haspatch |
---|---|
status: | new → open |
Changed April 03, 2013 03:33PM UTC by comment:5
resolution: | → wontfix |
---|---|
status: | open → closed |
We're likely just getting rid of alt fields. You should just bind to the appropriate event and update whatever fields you want.
Have committed update to fork for review.
http://github.com/jamescryer/jquery-ui/commit/b0d2bda99912c7103f52ab61708b1b028157ea24