If you use .dpSetSelected('21/03/2011') to select a date, how do i unselect the
selected date?
I read that calling .val('') on the date-picker element would work, although it
doesn't do a thing outside of the bind events. I want to globally reset (ie:
unselect the chosen date) of the datepicker from anywhere in my javascript
code, not just on a bind event for the date-picker itself.
I have also seen .dpSetSelected($('#datepicker').dpGetSelected()[0], false)
which looks promising, as it is unsetting the selected date, but it returns an
error:
s.substr is not a function
in date.js Line 463
Original issue reported on code.google.com by Demine...@gmail.com on 29 Sep 2011 at 3:06
Original issue reported on code.google.com by
Demine...@gmail.com
on 29 Sep 2011 at 3:06