update text on click of date with jQuery UI datepicker

Posted by stevoyoung on Stack Overflow See other posts from Stack Overflow or by stevoyoung
Published on 2010-04-21T05:02:36Z Indexed on 2010/04/21 5:03 UTC
Read the original article Hit count: 223

I have two related questions...

  1. How do I update an HTML element (let's say a p tag) with the correct date when I click on a day in the jQuery UI datepicker plug in?

  2. If I have another way to selecte a date aside from the datepicker, how do I then update the datepicker's selected date (it's adds a class of "ui-state-active" to the date)?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about datepicker