Use of jquery datepicker plug-in

Source: Internet
Author: User
Tags jquery ui datepicker

View the Code directly:

All js files referenced in the Code are packaged (see attachment 1 ). Except jquery-1.6.2.js. This is not directly related to datepicker.
If you want to display Chinese characters, add Attachment 2.

Java code
<Title> jQuery UI Datepicker-Default functionality </title>
 
<Link rel = "stylesheet" href = "../jquery-ui/css/jquery.ui.all.css">
<Script src = "../jquery-ui/jquery-1.6.2.js"> </script>
<Script src = "../jquery-ui/jquery. ui. core. js"> </script>
<Script src = "../jquery-ui/jquery. ui. widget. js"> </script>
<Script src = "../jquery-ui/jquery. ui. datepicker. js"> </script>
<! -- Display Chinese -->
<Script src = "../jquery-ui/jquery. ui. datepicker-zh-CN.js"> </script>

<Script>

$ (Function (){
$ ("# Datepicker"). datepicker ();
});
$ (Document). ready (function (){
// Alert ("fs ");
// $ ("# Datepicker"). datepicker ();
$ ("# Button"). click (function (){
Alert ($ ("# datepicker"). val ());
});

});
</Script>

</Head>
 
<Body>
<Div class = "demo">
 
 
<Input type = "text" id = "datepicker"/>
<Input type = "button" id = "button" value = "show"/>
</Div> <! -- End demo -->

 


Some parameter settings:
Java code
$ ("# Datepicker"). datepicker ({
MinDate: new Date ()
});

Author: Zheng Xingyang"
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.