| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Alter Function: Target Textbox instead of Alert|
I need to modify this function to send the date value to a textbox within the page instead of to an alert box:
The HTML form is directly under the calendar object on the same page:
<!-- CALENDAR CODE -->
<!-- TEXT BOX -->
<form method="post" action="report.html">
<input type="text" name="StartDate" id="StartDate" value="01/01/2003" size="8" maxlength=10>
I'm looking for something similar to this, except it targets a textbox within the page:
window.opener.document.getElementById['StartDate'].value = cellday(cell);
document.getElementById['StartDate'].value = cellday[cell];
Yes, almost like that. I found it on another site. The first set of brackets should be parenthesis, but you are basically right:
Thanks for taking the time.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved