Skip to main content

Search and Top Navigation

#4516 closed feature (worksforme)

Opened May 05, 2009 10:32AM UTC

Closed May 07, 2009 10:06AM UTC

Last modified October 11, 2012 09:15PM UTC

Feature Request: Custom trigger for datepicker

Reported by: PERECil Owned by:
Priority: minor Milestone:
Component: ui.datepicker Version: 1.7.1
Keywords: trigger custom datepicker Cc:
Blocked by: Blocking:
Description

It would be great to have a custom trigger button option for date picker, if we need to bind the opening of a popup to something else than a <img> or a textual link. We could use an option named "trigger" that would work like this:

$( ".date" ).datepicker( { trigger: $( this ).next( "button" ) } );

Attachments (0)
Change History (3)

Changed May 06, 2009 10:17AM UTC by kbwood comment:1

You can achieve this from the other end with the following:

$('.dateButton').click(function() {

$(this).prev('.date').datepicker('show');

});

Changed May 07, 2009 10:06AM UTC by jzaefferer comment:2

resolution: → worksforme
status: newclosed
type: bugfeature

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

milestone: TBD

Milestone TBD deleted