On Fri, Dec 18, 2009 at 1:49 AM, Louis-David Mitterrand < vindex+lists-jquery...@apartia.org <vindex%2blists-jquery...@apartia.org>>wrote:
> On Thu, Dec 17, 2009 at 04:50:31PM -0500, Richard D. Worth wrote: > > What type is inst? > > 'inst' is the start_date datepicker. That's why I'd like to use directly > this object instead of going through a selector. > jQuery can accept the element directly, in place of the selector: $(inst).datepicker('getDate'); - Richard > > > - Richard > > > > On Thu, Dec 17, 2009 at 8:53 AM, > > <vindex+lists-jquery...@apartia.org<vindex%2blists-jquery...@apartia.org> > <vindex%2blists-jquery...@apartia.org<vindex%252blists-jquery...@apartia.org> > > > > > wrote: > > > > > Hi, > > > > > > I have start_date and end_date DatePickers. When selecting a start_date > > > I'd like end_date to be initialized to the same as start_date. So I > > > added this event handler to start_date: > > > > > > onClose: function(dateText, inst) { > > > $("#end_date").datepicker('option', 'defaultDate', > > > $("#start_date").datepicker('getDate')); > > > } > > > > > > which works. But how could I use the passed 'inst' object instead of > > > $("#start_date) ? > > > > > > Thanks, > > > > > > -- > > > > > > You received this message because you are subscribed to the Google > Groups > > > "jQuery UI" group. > > > To post to this group, send email to jquery...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > jquery-ui+unsubscr...@googlegroups.com<jquery-ui%2bunsubscr...@googlegroups.com> > <jquery-ui%2bunsubscr...@googlegroups.com<jquery-ui%252bunsubscr...@googlegroups.com> > > > > > . > > > For more options, visit this group at > > > http://groups.google.com/group/jquery-ui?hl=en. > > > > > > > > > > > > > -- > > > > You received this message because you are subscribed to the Google Groups > "jQuery UI" group. > > To post to this group, send email to jquery...@googlegroups.com. > > To unsubscribe from this group, send email to > jquery-ui+unsubscr...@googlegroups.com<jquery-ui%2bunsubscr...@googlegroups.com> > . > > For more options, visit this group at > http://groups.google.com/group/jquery-ui?hl=en. > > > > > > -- > http://www.critikart.net > > -- > > You received this message because you are subscribed to the Google Groups > "jQuery UI" group. > To post to this group, send email to jquery...@googlegroups.com. > To unsubscribe from this group, send email to > jquery-ui+unsubscr...@googlegroups.com<jquery-ui%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/jquery-ui?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.