The Contains FunctionThe Contains function is one of the main functions for Jquery.
Say you had something as easy as this:
<div>
<table><tr><td>Hello World</td></tr></table>
<table><tr><td>RAWR</td></tr></table>
</div>
Say you wanted to add something after the table that has the text of "Hello World" in it. You would do this:
<script>
$("div table tr td:contains(Hello World)")
</script>
You do not have to have the "div table tr" part in it:
<script>
$("td").contains("Hello World")
</script>
This function does work with the 1.2.1 version of Jquery.<script>
$("td:contains(Hello World)")
</script>
That just makes sure that your getting the exact tr with that certain text.