[solved] searching for certain text
Hey Guys,
I have a new problem:
I have some elements (table, div, ...) which contains content. Now I want to search an certain text and do something if one element contains this text:
Example:
searching for 'schnitzel'
Code 1
- <div>
- <p>some text</p>
- </div>
- <div>
- <p>other text</p>
- </div>
- <table>
- <tr>
- <td>
- <p>some text again</p>
- </td>
- </tr>
- </table>
-> do nothing
Code 2
- <div>
- <p>some text</p>
- </div>
- <div>
- <p>other text</p>
- </div>
- <table>
- <tr>
- <td>
- <p>schnitzel</p>
- </td>
- </tr>
- </table>
-> do something!
now I tried the :contain filter, but it don`t work. I hope you understand my problem and can help me. :-)
THX!!
snuwie