| Welcome to WebmasterWorld Guest from 184.108.40.206 |
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|
| 4:52 pm on Jun 6, 2003 (gmt 0)|
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);
| 7:50 pm on Jun 6, 2003 (gmt 0)|
document.getElementById['StartDate'].value = cellday[cell];
| 8:01 pm on Jun 6, 2003 (gmt 0)|
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