TWEagle / jquery-datepicker

Automatically exported from code.google.com/p/jquery-datepicker
0 stars 0 forks source link

Adding functionality of selecting "None" #311

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Issue 310 has been merged into this issue.

Original comment by kelvin.l...@gmail.com on 29 Sep 2011 at 8:25