Codetale's Calendar Widget
Sunday First Example
- This example sets sunday as the first day of the week
Put this code in the <head>
section of your HTML file:
<link rel="stylesheet" title="Style CSS" href="cwcalendar.css" type="text/css" media="all" />
<script type="text/javascript">
var sundayFirst = true;
</script>
<script type="text/javascript" src="calendar.js"></script>
Example
Code for the input:<input type='text' name='date' id='date' onclick='fPopCalendar("date")'/>
click the input
Remember!
-
- All the flags are optional.
- Don't use them unless you need them!
- To call the calendar, use the fPopCalendar('input-id') function.
- You can place the function either as a link or "onclick" function on your inputs.
The function takes 'input-id' as parameter for display. 'input-id' is the id of the input you want your date to be filled(see the above example).