I am using JQuery to find a String of text within an element using the following -\[code\]<li><input type="checkbox" value="http://stackoverflow.com/questions/9601411/14"><a id="link-filterattribute-14" class=" jqueryCheck" rel="nofollow" href="http://stackoverflow.com/store/filtered/4/12_14/c_7/"> Black </a></li> <script>if ($(".jqueryCheck:contains('Black')").length){}</script>\[/code\]What I want to do is add a class to the \[code\]<input>\[/code\] If the word "Balck" is found. How do I go about this?Thanks