Can't pull input-field value located beyond form tag

ozmita

New Member
ProblemI use popup calendar, which is launched via href. I need to pass 'document.tstest.timestamp' (date input field) parameter into javascript function. And all worked well, BUT:I want to include this tag-file into another form, so I can't use form \[code\]<form name="tstest">\[/code\]in my tag file. As a result, without form I can't find document.timestamp input-field (as I understand due window.object hierarchy)My tag file: \[code\]<form name="tstest"> <input type="Text" id="time_stamp" name="timestamp"> <a href="javascript:show_calendar('document.tstest.timestamp', document.tstest.timestamp.value);"> showCalendar</a></form><script> function show_calendar(target, value) { ............ }</script> \[/code\]Help me, please, to find out solution.
 
Back
Top