Skip to main content

Bug Tracker

Side navigation

#12857 closed bug (notabug)

Opened November 07, 2012 12:02AM UTC

Closed November 07, 2012 07:46PM UTC

Last modified December 10, 2012 10:32AM UTC

Date Input doesn't work with val()

Reported by: eighteyes@gmail.com Owned by: eighteyes@gmail.com
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.

Attachments (0)
Change History (5)

Changed November 07, 2012 03:29PM UTC by timmywil comment:1

owner: → eighteyes@gmail.com
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.

Changed November 07, 2012 05:33PM UTC by eighteyes comment:2

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

Changed November 07, 2012 07:46PM UTC by timmywil comment:3

resolution: → notabug
status: pendingclosed

Thanks

Changed December 10, 2012 10:22AM UTC by BiAiB comment:4

Replying to [comment:3 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.

Changed December 10, 2012 10:32AM UTC by BiAiB comment:5

Replying to [comment:4 BiAiB]:

Replying to [comment:3 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.