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.