Home > Web Front-end > JS Tutorial > Recommend a small JS calendar_time and date

Recommend a small JS calendar_time and date

WBOY
Release: 2016-05-16 19:10:29
Original
1301 people have browsed it

The core of the script is the DateAdd function. Click on the demo below to see the effect:
View the demo

The calling method is very simple,
Step 1: Include the calenderJS.js file at the top of the page:

Click to download this js file

Step 2: Add the onfocus event attribute to your input box:

HS_setDate(this) is the initialization function

This calendar has been applied to the sidebar of this blog, and Add ajax function to asynchronously query the days with logs and make them bold.


[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template