datepicker("getDate") returns "null" in Chrome
If I have the following HTML code:
- <div><input type="date" name="someDate" id="someDate"/></div>
and the following JQuery code:
- $("#someDate").datepicker();
- $("#someDate").datepicker("setDate", new Date());
- var output = $("#someDate").datepicker("getDate");
- console.log(output);
I will see "null" on the console in Chrome (IE and FF will show the actual date)
But if I change the HTML code for this:
- <div type="date" name="someDate" id="someDate"></div>
then it works in all. But what is the problem in the first case?
Thx