JavaScript Calendar Script/Date Picker Widget
There are many javascript calendar widgets(or date pickers) out there - so I decided to make another one. Yes, I have a really bad case of 'Not-Invented-Here' syndrome...
Demo
Download the Code
Features
- Simple
- Supports multiple calendars on one page
- Self contained - don't need an external library
- Unobtrusive - even if JavaScript is off, you still get basic functionality(the date input box is shown)
- Display style can be easily configured by editing the stylesheet
Disadvantages(or To Do List)
- New script - expect bugs
- Only English/Gregorian calendar supported.
- No API support.
- Date format for the input box cannot be configured(yet)

Comments
<html>
<head>
<script src="calendar.js" type="text/javascript"></script>
<link href="calendar.css" type="text/css" rel="stylesheet" />
</head>
<body>
<input type="text" name="date" id="date" />
<script type="text/javascript">
calendar.set("date");
</script>
</body>
</html>
Your date picker is great!
Can you tell me how to change the javascript so that the date format is mm-dd-yyyy?
Not a big deal, but if it is not a difficult change that would be great.
Thanks!
Cheers,
tedd
i have a small doubt can i stop the date selection to the current date,
if so plz provide the script.
Thank you once again to give such a nice code.....
a, strong, em, b, i, code, pre, pandbrallowed. Other tags will be shown as code(< will become <). Urls, Line breaks will be auto-formated.