highlawn
asked on
HTML5 Browser Support
I have been using JQuery to show a datepicker for forms where the input type is date. However, upon testing this in Opera - which supports HTML5 validation I get both the JQuery datepicker AND the Opera datepicker - one overlaying the other.
How might I tell that the browser supports this and so switch off the JQuery option, or tell the browser NOT to use its own or any other way of harmonising this?
Also - if I default to using the browser based datepicker - how do I tell it to use UK format dd/mm/yyyy and not ISO format of yyyy-mm-dd?
I should say that in Opera, the JQuery datepicker seems to be ineffective - once you select the Opera picker's date, then you have to select one from the JQuery - but that doesn't affect the displayed date - the one selected from Opera. How might I overcome that?
Finally, how might I style the browser based datepicker - colours mainly.
Many Thanks
How might I tell that the browser supports this and so switch off the JQuery option, or tell the browser NOT to use its own or any other way of harmonising this?
Also - if I default to using the browser based datepicker - how do I tell it to use UK format dd/mm/yyyy and not ISO format of yyyy-mm-dd?
I should say that in Opera, the JQuery datepicker seems to be ineffective - once you select the Opera picker's date, then you have to select one from the JQuery - but that doesn't affect the displayed date - the one selected from Opera. How might I overcome that?
Finally, how might I style the browser based datepicker - colours mainly.
Many Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Once HTML5 becomes more rolled out and advanced, then perhaps that is the time to use it and, for now, jquery/js is the more complete answer.
Many Thanks and I'll split the points.