views:

31

answers:

0

Hi all,

I've got two questions, here the first one :

How can you manipulate the day you have clicked on ? I mean, how do you get he jQuery object of it ? the onSelect option doesn't work as I'd like, the $(this) refer to the datepicker (the input) and there is no event. The $('.ui-datepicker-current-day.') refer to the previous selected day, not correct to :/ What I want to do is to toggle a class when you click on a day, and do some AJAX.

My second question is that I'd like to put a class on severals days before the datepicker loads. I have some days (in timestamp) in PHP and I'd like to add a class on all thoses days in my datepicker, is it possible ?

Thank you :)