| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Pubcon Platinum Sponsor 2014|
|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