js remove ta contin word

JavaScript
$('div:contains("word2")').remove();

Source

Also in JavaScript: