Date picker landed on Chrome 20, is there any attribute to disable it? My entire system uses jQuery UI datepicker and it's crossbrowser, so, I want to disable Chrome native datepicker. Is there any tag attribute?
相关问题
- Views base64 encoded blob in HTML with PHP
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
-
Why does the box-shadow property not apply to a
If you have misused
<input type="date" />
you can probably use:after they have loaded to turn them into text inputs. You'll need to attach your custom datepicker first:
Or you could give them a class:
You could use:
The code above doesn't set the value of the input element nor does it fire a change event. The code below works in Chrome and Firefox (not tested in other browsers):
pad is a simple custom String method to pad strings with zeros (required)
I use the following (coffeescript):
which gets converted to plain javascript:
This worked for me
I agree with Robertc, the best way is not to use type=date but my JQuery Mobile Datepicker plugin uses it. So I have to make some changes:
I'm using jquery.ui.datepicker.mobile.js and made this changes:
From (line 51)
to
and in the form use, type text and add the var plug: