How to use the JS Calendar control

Source: Internet
Author: User

When doing a registration form, I learned how to use the JS Calendar control

<script language=javascript src= "Calendar5.js" ></script>

<script type= "Text/javascript" >
var c = new Calendar ("C");//new objects
document.write (c);//This has to be, otherwise the calendar won't show.
Window.onload = function () {
document.getElementById ("Cal"). Onclick=function () {
C.show (This,getobjbyid (' bday '));//Display the date selected on the calendar in the text box
}

</script>
<body>

<input type= "text" name= "Brith" id= "Bday" >

</body>

In fact, in this calendar of the control, there are many methods can be called as needed, there is no time to explore

See http://www.cnblogs.com/yank/archive/2008/08/14/1267746.html, six different styles of calendar controls

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.