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" ) } );
You can achieve this from the other end with the following:
$('.dateButton').click(function() {
$(this).prev('.date').datepicker('show');
});