See the dialog option for the datepicker.  Just put this in the click
event of your span and then use the onSelect to do what you want with
the date.

http://jqueryui.com/demos/datepicker/#method-dialog

Hth,

Dave


On Sep 14, 7:56 pm, Chris Kilmer <[email protected]> wrote:
> I've been able to get the datepicker working when:
>
> 1. It's attached to an input element (datapicker pops up when input
> gets focus)
> 2. Datepicker is attached to a span (datepicker is always visibile)
>
> I'm wondering if there is a way to associate a datepicker with a span
> or link element and only have the datepicker show when the element is
> clicked, i.e.
>
> <p>Avg clicks since <span>June 14, 2009</span></p>
>
> So, in this example, the calendar would be hidden until the span
> element is clicked.  When the span is clicked, the calendar displays.
>
> Any advice would be welcome.  Thx.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to