![]() When presetting the date for the native date picker, be sure to use a format the device recognizes. Beware that it's not enough to check for some Android version like the Samsung Galaxy S2 on Android 4.0.3 does support type="date", but the Google/Samsung Nexus S on the more recent Android 4.0.4 does not. Alternatively, Modernizr can be used for detection. ![]() Browsers/devices that don't support it will ignore setting the type to date and return text when reading back that attribute. One can detect if type="date" is supported by setting that attribute and then reading back its value. Here are some observations from 2012, which still might be valid today: Since some years some devices support but others don't, so one needs to be careful.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |