jQuery: datepicker - Calendar activated by the icon and the date field at the same time

Posted by Ricardo Zea on Stack Overflow See other posts from Stack Overflow or by Ricardo Zea
Published on 2010-04-20T17:43:00Z Indexed on 2010/04/20 17:43 UTC
Read the original article Hit count: 274

Filed under:
|

Hello, I've already looked around but couldn't find the exact solution/problem I'm having right now.

All I want is to have the calendar appear either by clicking on the calendar icon AND from the text field in which the date appears when selecting a date. Right now, after trying different properties, I can only have the calendar appear by one or the other, but not both: the icon and the field.

This is the code I'm using to activate it via the icon:

$("#datepicker").datepicker({

showOn: 'button', buttonImage: 'images/icon-calendar.gif', buttonImageOnly: true, changeMonth: true, changeYear: true, showAnim: 'slideDown', duration: 'fast' });

Is there a way to have the calendar appear by clicking on the icon AND the field as well?

Thanks.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about datepicker