The Joy of jQuery: A Beginner's Guide to the World's Most Popular Javascript Library by Alan Forbes

The Joy of jQuery: A Beginner's Guide to the World's Most Popular Javascript Library by Alan Forbes

Author:Alan Forbes [Forbes, Alan]
Language: eng
Format: epub
Tags: General Fiction
Publisher: Plum Island Publishing, LLC
Published: 2013-11-21T18:30:00+00:00


The jQuery date field make it much easier for users to enter dates. The date picker modifies the behavior of a standard form input field. Simply focus on the input field (click, or use the tab key) and an interactive calendar will appear magically. Choose a date and the selected date is shown as the input's value.

Code

01 <!doctype html>

02

03 <html lang="en">

04 <head>

05 <meta charset="utf-8" />

06 <title>jQuery UI Datepicker - Default functionality</title>

07 <link rel="stylesheet" href="jquery-ui.css" />

08 <script src="jquery-1.9.1.js"></script>

09 <script src="jquery-ui.js"></script>

10

11 <script>

12 $(function() {

13 $( "#datepicker" ).datepicker();

14 });

15 </script>

16 </head>

17 <body>

18 <h1>Joy of jQuery</h1>

19 <h2>When you would like to bring in your car for service?</h2>

20

21 <p>Date: <input type="text" id="datepicker" /></p>

22

23

24 </body>

25 </html>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.