23
rated 0 times
[
29]
[
6]
/ answers: 1 / hits: 22514
/ 11 Years ago, tue, september 24, 2013, 12:00:00
I have javascript that generates the following HTML
<div class='rightbox'>
<div class'testBox'>
</div>
</div>
Now i have a button that when pressed should remove the div whos class is testbox
. Now even though it is in this case it is not always that the testBox
is the first child within the rightbox
.
So how do i find and remove it? and then afterwards test if it is present as a child within the rightbox
?
More From » html