Selecting the id containing some text

by madhu131313

HTML

<div id="pup">
    <div id="22">Hai I am Madhu</div>
</div>

JavaScript

//This code alering the parent of the div containnig a text 
alert($('div:contains("I")').attr("id"));