>I have a div which contains some HTML.
>
>I can do this:
>
>
>loElements=loDiv.getElementsByTagName("form")
>
>
>This will contain all the forms.
>
>If I do this:
>
>
>for (lnCounter=0; lnCounter<loElements.length; lnCounter++)
>{
> alert(loElements[lnCounter].id)
>}
>
>
>...it shows me Form1.
>
>As I only need to access one form, I thought of changing this to:
>
>
>loForm=loDiv.getElementById("Form1")
>
>
>But, this doesn't work. Javascript stops.
>
>Why can't I access it directly with getElementById()?
.getElementById() is only available on the document,,,,