L
L
lhav2012-10-18 11:13:59
JavaScript
lhav, 2012-10-18 11:13:59

jQuery Datepicker, input=date, Google Chrome?

The bottom line is that if jQuery Datepicker is used, and type=date is assigned to the field, then the standard Google Chrome control spoils everything with its presence.

How to turn it off? Has anyone overcome this problem, or can they find a compromise? It would not be desirable to make a field text.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexander, 2012-10-18
@xel

The question is similar: how to make the text not be replaced by asterisks in input type="password".
This "problem" will be not only in Chrome, but also in Opera, and in the future in all browsers, because. it's HTML5 Forms, and HTML5 support is increasing in all browsers from release to release.
I don't see any reason not to make the field text if you want to use the jquery.ui control.

I
Ilya Plotnikov, 2012-10-18
@ilyaplot

You are using two tools at once.
There is no point in this. Either disable ui or make it text.
It's like putting a manual and an automatic on a car at the same time...

A
Anton Bobylev, 2012-10-18
@dpigo

updates.html5rocks.com/2012/08/Quick-FAQs-on-input-type-date-in-Google-Chrome

E
Evgeny Kolotilin, 2012-10-18
@iswitch

::-webkit-calendar-picker-indicator {
    display: none;
}

I
Ilya Shabanov, 2012-10-18
@ishaba

onclick e.preventDefault();
there are more sophisticated ways, although I would just use type=text

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question