Newbie in javascript.
Suppose I have this html
<html>
<div id = "div1">
<table>
<tr><td>Name</td></tr>
<tr><td>Password</td></tr>
</table>
</div>
<div id = "div2">
<input name="place" value=""/>
<input name="place" value=""/>
</div>
</html>
But I want to retrieve all the tags and elements of a div in "div1". So elements that will be retrieved will be
<table>
<tr><td>Name</td></tr>
<tr><td>Password</td></tr>
</table>
Not only the data.