Opened 12 years ago
Closed 10 years ago
#5958 closed feature (wontfix)
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' });
Change History (5)
comment:1 Changed 12 years ago by
comment:2 Changed 11 years ago by
Type: | enhancement → feature |
---|
comment:3 Changed 10 years ago by
Milestone: | TBD → 1.11.0 |
---|
comment:4 Changed 10 years ago by
Keywords: | haspatch added; datepicker altField removed |
---|---|
Status: | new → open |
comment:5 Changed 10 years ago by
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.
Note: See
TracTickets for help on using
tickets.
Have committed update to fork for review.
http://github.com/jamescryer/jquery-ui/commit/b0d2bda99912c7103f52ab61708b1b028157ea24