Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving a value to a field.

Status
Not open for further replies.

4345487

Programmer
Dec 31, 2002
132
US

Hi,

I have a page wit two forms like the one below when I try to write something to the inside form using java script I get document.test.xx is null or not an object is this illegal or I'm doing something wrong.

Thanks


<form name="form1" action="" method="post">

<form name="test" action="" method="post>

<input Type="text" name="xx" value="">
</form>

</form>

<script>

document.test.xx.value="xxxxxx";

</script>
 
What's with the nested forms?

Not allowed.

*cLFlaVA
----------------------------
Lois: "Peter, you're drunk!"
Peter: "I'm not drunk, I'm just exhausted from stayin' up all night drinking!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top