#12857 closed bug (notabug)
Date Input doesn't work with val()
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Trying to set date with val, and it fails. Have to fall back to attr.
Change History (5)
comment:1 Changed 10 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Not Reproducible in jsfiddle. I suspect it was addressed in the edge.
comment:3 follow-up: 4 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | pending → closed |
Thanks
comment:4 follow-up: 5 Changed 10 years ago by
Replying to timmywil:
Thanks
the bug still exists: http://jsfiddle.net/FrKyN/506/
I observed the format is localized, and i'm using french locale (dd/mm/yyyy), if that changes anything.
comment:5 Changed 10 years ago by
Replying to BiAiB:
Replying to timmywil:
Thanks
the bug still exists: http://jsfiddle.net/FrKyN/506/
I observed the format is localized, and i'm using french locale (dd/mm/yyyy), if that changes anything.
Well, just figured out the format has to be 'yyyy-mm-dd' when it's displayed 'dd/mm/yyyy' in the input.
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/. Open the link and click to "Fork" (in the top menu) to get started.