I have a div with id content
, and I want to get the id
elements of the first level div
, for example. box1
, box2
, box3
. How can I do that?
<div id="content"> <div id="box1" class="box1class"> <div>...</div> </div> <div id="box2" class="box1class"> <div>...</div> </div> <div id="box3" class="box1class"> <div>...</div> </div> </div>
source share