How to search for text in iframe and get its element?
<p>How to search for some text in iframe and upon match get its element or append css class to it.</p>

<p>i have tried with :</p>

<pre><code>$('#my_iframe').contents().find().text('my text');
</code></pre>

<p>but it is not working also i have read some articles with <strong>:contains</strong> but am not sure how to make it working for iframe.</p>

######### Edited

<p>Even tried this but it gives me "Undefined"</p>

<pre><code>alert($('#my_iframe:contains("'+data+'")').first().tagName);
</code></pre>

<p><strong>Note :</strong>
<em>Do not tell me how to use find method of Jquery, just answer my question of how to search for specific text and get its element.</em></p>
