How to delete all divs with at least one child using jquery? -
i want delete divs has @ least 1 child using jquery. example need delete divs containing paragraph 'hello' , 'world'. can 1 please ?
<div style="background:#ff0000;height:200px;width:200px;"> <p> hello </p> </div> <div style="background:#00ff00;height:200px;width:200px; "> </div> <div style="background:#0000ff;height:200px;width:200px;"> </div> <div style="background:#aaaa3a;height:200px;width:200px;"> <p>world </p> </div>
Comments
Post a Comment