I have javascript that generates the following HTML
<div class='rightbox'> <div class'testBox'> </div> </div>
Now I have a button that when clicked should remove the div class whos testbox . Now, although in this case it is not always that testbox is the first child in the rightbox .
So how do I find and delete it? and then after checking if it is present as a child of the rightbox ?
Marc source share