Forum Moderators: open
I need to modify this function to send the date value to a textbox within the page instead of to an alert box:
function message(cell)
{
alert(cellday[cell]);
}
The HTML form is directly under the calendar object on the same page:
<!-- CALENDAR CODE -->
<SCRIPT LANGUAGE="JavaScript">calendar();</SCRIPT>
<!-- TEXT BOX -->
<form method="post" action="report.html">
<input type="text" name="StartDate" id="StartDate" value="01/01/2003" size="8" maxlength=10>
</form>
I'm looking for something similar to this, except it targets a textbox within the page:
window.opener.document.getElementById['StartDate'].value = cellday(cell);