162
rated 0 times
[
167]
[
5]
/ answers: 1 / hits: 28880
/ 7 Years ago, tue, april 11, 2017, 12:00:00
How can I get all children of a html tag with a certain name?
Let's assume I have a <div>
which looks like this
<div id=test>
<input name=test1/>
<input name=test2/>
</div>
if I have the div element, how can I get any child with name test1 or test2? I tried
div.getElementsByName('test1')
but that does not work?
More From » html