J
Juliano.net
How can I get a list of elements inside a tag and when I find one
element of a type that I choose I can change its ID and CLASS
attribute?
Ex:
<div id="content"> <!-- I want to get the list of elements inside the
DIV with ID content -->
<a href="#">My link</a>
<b>Some trash</b>
<div> <!-- The first DIV element I find, will be used and I'll change
it's ID -->
<div id="innerdiv1">
</div>
<div id="innerdiv2">
</div>
</div>
</div>
How can I do this?
element of a type that I choose I can change its ID and CLASS
attribute?
Ex:
<div id="content"> <!-- I want to get the list of elements inside the
DIV with ID content -->
<a href="#">My link</a>
<b>Some trash</b>
<div> <!-- The first DIV element I find, will be used and I'll change
it's ID -->
<div id="innerdiv1">
</div>
<div id="innerdiv2">
</div>
</div>
</div>
How can I do this?