Typo in demo of datepicker: div type=text
The demo code in offline document (development-bundle\docs\datepicker.html#demo) mentions:
<div type="text" id="datepicker"></div>
as the target but it should be:
<input type="text" id="datepicker"></input>
I had a confusion if div has a type attribute and asked the question in Stackoverflow as well: http://stackoverflow.com/questions/6561676/div-type-text-why-specify-type
Change History (2)
Milestone: |
1.9 →
1.8.15
|
Resolution: |
→ fixed
|
Status: |
new →
closed
|
Component: |
ui.datepicker →
[meta] ui.docs
|
Fixed. The fix was actually to just remove the type="text" as the demo with div shows it as an inline datepicker. There are use cases for having a datepicker always open. This one is so that it's visible on this demo without the user having to click an input.