Disable Opera browser enrich HTML5 fields

I use many inputs with HTML5 types (for example, "date" or "time") using the jQuery Tools library. Some browsers (like Opera) automatically recognize this and, for example, convert <input type="time" /> to time input.

However, I do not want this behavior (since entering time in Opera does not include seconds). Is there a general HTML5 way to disable this special behavior?

Thanks Remo

+6
javascript jquery html5 opera
source share
2 answers

As most commentators on the original question have already pointed out: No, there is no β€œnormal HTML5 way” to prevent this behavior.

Even so, you should not. You strongly ask Opera to ignore what you asked for in the first place: a special user interface.

+5
source share

If you want the time element in Opera to display seconds, add the attribute step="1" , you can get milliseconds by setting step="0.1" , and step=60 will again give you the default hh:mm . This also works in Chrome (tested in version 9.0.597.98 beta).

+9
source share

All Articles