Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#12857 closed bug (notabug)

Date Input doesn't work with val()

Reported by: eighteyes@… Owned by: eighteyes@…
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 6 years ago by timmywil

Owner: set to eighteyes@…
Status: newpending

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.

comment:2 Changed 6 years ago by eighteyes

Not Reproducible in jsfiddle. I suspect it was addressed in the edge.

comment:3 Changed 6 years ago by timmywil

Resolution: notabug
Status: pendingclosed

Thanks

comment:4 in reply to:  3 ; Changed 6 years ago by 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.

comment:5 in reply to:  4 Changed 6 years ago by BiAiB

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.

Note: See TracTickets for help on using tickets.