Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 5. HTML5 Web Forms > Beginner Recipe: Creating Calendar and Time Contro...

Beginner Recipe: Creating Calendar and Time Controls

A common issue web developers have to deal with is how to create calendar widgets that allow the users to pick a date from a calendar so they do not have to enter the date themselves. Creating a widget has always required JavaScript, but that is going to change. In this recipe, you will look at the various new input types that create different calendar controls, and for browsers that do not provide a calendar widget, refer to Chapter 3, where we offer a couple of fallback solutions.

Table 5.6. datetime Input Type Device and Browser Support
Android[*]
Chrome[*]
Firefox[*]
Internet Explorer[*]
iOS Safari5.0+
Opera10.0+
Safari[*]


[*] No calendar widget but text input fallback provided


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial