Chrome and date input
July 11, 2012 4:00 AM   Subscribe

I have a form with some html5 date input fields. I use the jquery UI datepicker to get it working on browsers that don't support type="date". Everything's lovely in IE and Firefox. Chrome is behaving oddly. It displays both the jquery datepicker and (I assume) its own html5 picker. It won't display the value I'm giving it correctly, and whatever you put in the input (using the chrome picker because it won't accept input from the jquery one...) it returns 0/0/00. Help!
posted by monkey closet to Computers & Internet (1 answer total)
 
Best answer: It sounds like you have the same problem as the person in this Stack Overflow question: How can I disable the new Chrome HTML5 date input?

The key part of the answer is to only enable the date picker if the browser doesn't support type="date". That seems to be what your intention is, as you say that it's for browsers that don't support that input type.

(If this does turn out to be the problem, I found the answer by Googling [jquery ui date chrome].)
posted by smcg at 6:01 AM on July 11, 2012


« Older Moving via RV   |   Interviewing people without notice Newer »
This thread is closed to new comments.