HTML5 Input Date Mobile IOS does not support issues

Source: Internet
Author: User

1, placeholder problem solving method

The purpose of using placeholder on input type date is to give the user more accurate input of the date format, and on IOS there will be a date that does not display placeholder text, but in order to unify the appearance of the form, it is often necessary to display it. Android Some models do not have date and do not display placeholder text.

Workaround:

First make its type text, at this time support placeholder, when touch or focus, use JS switch to trigger the DatePicker function.

<input placeholder= "Date" class= "Textbox-n" type= "text" onfocus= "(this.type= ' Date ')"  id= "Date" >

But after clicking on the iphone 4s, there is still a small problem, the style is still the default style, is looking for a workaround.

This solution is used for reference http://www.w3cmark.com/2015/405.html

And then find a good way to add.

HTML5 Input Date Mobile IOS does not support issues

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.