Tuesday 20 November 2012

jQuery UI Datepicker - Default functionality

jQuery UI Datepicker - Default functionality Date:

Here is the datepicker

code goes here :
step 1 : copy and paste below code in notepad and save as example.html
step 2 : open it in browser.

<!doctype html>

<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>jQuery UI Datepicker - Default functionality</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.2.js"></script>
    <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css" />
    <script>
    $(function() {
        $( "#datepicker" ).datepicker();
    });
    </script>
</head>
<body>

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


</body>
</html>

1 comment:

Do you think it could be useful for you? Share your thoughts with us!