Hi all,
How will I change the color of the dates in the javascript calendar which already has some event entered for it. Like I have a form where the user enters the id and selects the date from calendar and leaves a comment for that date. This data will be stored in mysql database.
How can I change the color of dates in calendar so that if the user has already entered some comment for that then that date should become green color. How can I do this. Can anybody help me.
Here is the source code
form1.html
[HTML]<script type="text/javascript" src="date-picker.js"></script>
<form name="myform" action="test1.p hp" method="POST">
Your id : <input type="textbox" id="idno" name="idno">
Chosse date : <a STYLE="text-decoration: none" onmouseover="wi ndow.status='Da te Picker';return true;" onmouseout="win dow.status='';r eturn true;" href="javascrip t:show_calendar ('myform.date_i d')" >
<IMG height=21 src="calendar.g if" width=30 border=0></a>
<input type="textbox" class="textBox" type="text" readonly name="date_id" id="date_id" size="10">
Comments : <input type="textbox" id="comment" name="comment">
<input type="submit" value="click">
</form>[/HTML]
With regards
How will I change the color of the dates in the javascript calendar which already has some event entered for it. Like I have a form where the user enters the id and selects the date from calendar and leaves a comment for that date. This data will be stored in mysql database.
How can I change the color of dates in calendar so that if the user has already entered some comment for that then that date should become green color. How can I do this. Can anybody help me.
Here is the source code
form1.html
[HTML]<script type="text/javascript" src="date-picker.js"></script>
<form name="myform" action="test1.p hp" method="POST">
Your id : <input type="textbox" id="idno" name="idno">
Chosse date : <a STYLE="text-decoration: none" onmouseover="wi ndow.status='Da te Picker';return true;" onmouseout="win dow.status='';r eturn true;" href="javascrip t:show_calendar ('myform.date_i d')" >
<IMG height=21 src="calendar.g if" width=30 border=0></a>
<input type="textbox" class="textBox" type="text" readonly name="date_id" id="date_id" size="10">
Comments : <input type="textbox" id="comment" name="comment">
<input type="submit" value="click">
</form>[/HTML]
With regards
Comment