It helps to select all elements that contain the specified text.
// HTML Content
<div>Vipin</div>
<div>Kiran</div>
<div>Sanoj</div>
<div>Dhanesh</div>
// To finds all divs containing “Kiran” and underlines them.
$( “div:contains(‘Kiran’)” ).css( “text-decoration”, “underline” );
//OUTPUT
Vipin
Kiran
Sanoj
Dhanesh