Skip to main content

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:

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.

        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 jamescryer comment:1

Changed June 26, 2012 01:22AM UTC by scottgonzalez comment:2

type: enhancementfeature

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

milestone: TBD1.11.0

Changed October 19, 2012 09:56PM UTC by mikesherov comment:4

keywords: datepicker altFieldhaspatch
status: newopen

Changed April 03, 2013 03:33PM UTC by scottgonzalez comment:5

resolution: → wontfix
status: openclosed

We're likely just getting rid of alt fields. You should just bind to the appropriate event and update whatever fields you want.