Use jquery :contains and and .eq() to modify text style within specific div
<p>Is it possible to combine the use of :contains and .eq() to search for text within a specific div?</p>

<p>I currently use the following two statements which create jquery statements based upon values grabbed from the URL by PHP $_GET[].</p>

<p>The first simply checks for link text matching the current $platformString and turns it white.</p>

<pre><code>$(\"a:contains('". $platformString . "')\").css(\"color\", \"#ffffff\");
</code></pre>

<p>The second shows and hides a div based upon a known value stored in section.</p>

<pre><code>$(\".sidebar_content\").eq(" . $section .").toggle();
</code></pre>

<p>The problem is that there can be multiple matches of $platformString within other hidden divs, once these are matched they are also turned white.</p>

<p>Can I combine the two statements to simply highlight the $platformString within the current $section?</p>

<p>Many thanks for any advice you are able to provide.</p>

<p>Robert</p>
