-
Simplest self-contained JavaScript Calendar Module
-
no dependencies, should work well with everything else ;-)
- Include cal.js in your HTML:
<script src="cal.js" type="text/javascript"></script>
- call cal with the id of the input element
cal.set("day");
- download/save cal.js
- cut & paste the following code and save to cal.html
- open cal.html in a browser and click on the input ;-)
<html>
<head>
<title>cal.js usage sample</title>
<script src="cal.js" type="text/javascript"></script>
</head>
<body>
<p>day: <input id="day" /></p>
<p>another day: <input id="anotherday" value="17/7/1971" /></p>
<script>
cal.set("day");
cal.set("anotherday");
</script>
</body>
</html>