Codetale's Calendar Widget
Date format Example
- This example displays an alert message when a date is picked.
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 callNotice = "sayHello()";
function sayHello()
{
alert('Hi!');
}
</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).