Hi,
I’ve created a table based calendar.The user clicks on a date and it populates an empty cell with information. How do I get an empty cell to populate automatically based on a date and using information contained in a div tag? I would like this cell to fill in automatically based on whatever today’s date is. I’m using div tags and the following javascript to basically turn div tags on and off:
<script language=”JavaScript”>
function expand(param)
{param.style.display=(param.style.display==”none”)?””:”none”;}
function RemoveContent(d) {
document.getElementById(d).style.display = “none”;
}
</script>
Below is the div tag placed in empty cell:
<div id=”div3″ style=”display:none” >People out on Sept 3</div>
Code placed in cell for September 3 to reveal div tag:
<td align=”center” <a href=”javascript:expand(document.getElementById(‘div4’))”><b>3</b></a></font></td>
Thanks for any help you can give me.