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

Recommend a small JS calendar_time and date

WBOY
WBOYOriginal
2016-05-16 19:10:291285browse

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
]
Statement:
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