for example I have the following structure:
<div class="parent">
<div>1st child</div>
<div>2nd child</div>
<div>3rd child</div>
<div>4th child</div>
</div>
all I want is to have the text of all the children of the parent div as items of an array.
the jQuery solution is preferred.
1 Answer