This is sample code.
html div id="test" div form elements like uname and pwd 1st div end
2nd div end For the child div there is no nameor id.
Var
x=document.getElementById("test");
</html>
It is returning object but i was unable to print values..i was unable to find length of object. In IE11.
Please help on this.