punit jain
punit jain

Reputation: 57

How to display a calendar on click of a textbox with jQuery?

I have a text box and a submit button. On clicking on text box,calender is showing. my problem is that the following code has css or js file which has url of Http etc.I want css or js file on my system from following link because i am working on IBM RAD and can't use external files. So,please help me.

<!doctype html> 
<html lang="en">
    <head> 
        <meta charset="utf-8" /> 
        <title>jQuery UI Datepicker - Restrict date range</title> 
        <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />  
        <script src="http://code.jquery.com/jquery-1.9.1.js"></script> 
        <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> 
        <link rel="stylesheet" href="/resources/demos/style.css" />
        <script>
            $(function() {
                $("#datepicker").datepicker({ 
                    minDate: "-6M ", 
                    maxDate: -60 
                }); 
            });  
        </script>
    </head>
    <body> 
        <p>Date: <input type="text" id="datepicker" /></p>  
    </body>
</html>

Upvotes: 0

Views: 2050

Answers (3)

Sudarshan Tanwar
Sudarshan Tanwar

Reputation: 3607

Right click on your web page and go to "view page source".Then you will get a screen shown in image. And you can download all files by clicking on them.Copy and add them in you project.enter image description here

Upvotes: 0

RONE
RONE

Reputation: 5485

Just go to the links, 1.open the link in the crome browser, 2.just say CTRL+S, (save as) then click on save button to your working directory, 3.Change your links accordingly.

Upvotes: 0

U.P
U.P

Reputation: 7442

You are accessing jQuery and jQuery UI from CDN.

Instead, you can download jQuery and jQuery UI and use these files from your local file system.

Upvotes: 1

Related Questions