Just out of interest, why are you nesting two forms?
Try using this to get the value :-
<script
language="JavaScript">alert(document.getElementByName('txttest1').value)
;</script>
Dan
________________________________
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Sreenath
KR
Sent: 04 July 2005 14:36
To: [email protected]
Subject: RE: [AspClassicAnyQuestionIsOk] Retrieving value from a control
contained in inner form
Its a client-side Javascript code written in ASP page. Page is bit
complicated, but this is how my code looks like.
<form name='form1'>
<input type='text' name='txttest1' value='test' >
<table border=0>
<tr>
<td>
<form name='form2'>
<input type='text' name='txttest' value='test' >
</form>
</td>
</tr>
</table>
</form>
<script
language='javascript'>alert(document.form1.form2.txttest.value);</script
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
________________________________
YAHOO! GROUPS LINKS
* Visit your group "AspClassicAnyQuestionIsOk
<http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk> " on the web.
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
subscribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .
________________________________
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/