parmarmayur9090 / jquery-datepicker

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

problem to empty the datepicker input text #203

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

<input type="text" id="sample">
$("#sample").datePicker();

now I click on 01-01-2010

I launtch $("#sample").val("");

if I click on the date picker and I wanna select 01-01-2010 i can't do 
that.

if I click on other day and after that I click on 01-01-2010 it works.

What version of the datepicker are you using? On what operating system? And 
Which Browser?

datePicker version: v 1.3 2010/04/28 13:18:56
OS: ubuntu 9.10
browser: ff 3.59 and chrome 5.0.342

Please provide any additional information below.

I hope that my explanation is ok.

Original issue reported on code.google.com by tommaso.taruffi on 30 Apr 2010 at 3:39

GoogleCodeExporter commented 8 years ago
You could try:

$("#sample").val("").trigger("change");

Let me know if it works...

Original comment by kelvin.l...@gmail.com on 1 May 2010 at 12:31

GoogleCodeExporter commented 8 years ago
great, it works!

Thanks!!

Original comment by tommaso.taruffi on 3 May 2010 at 8:09

GoogleCodeExporter commented 8 years ago
Cool :)

Original comment by kelvin.l...@gmail.com on 3 May 2010 at 11:13