jQuery: contains selector for <option>VALUE</option>
<p>I'm trying to add a class to the H1 tag that matches the current select option.</p>

<p>jQuery</p>

<pre><code>    var option = $('#fruits').val()
    $("h1:contains(option)").addClass('selected')
</code></pre>

<p>html</p>

<pre><code>&lt;select&gt;
    &lt;option&gt;Select One&lt;/option&gt;
    &lt;option&gt;apple&lt;/option&gt;
    &lt;option&gt;orange&lt;/option&gt;
    &lt;option&gt;lemon&lt;/option&gt;
&lt;/select&gt;

&lt;h1&gt;apple&lt;/h1&gt;
&lt;h1&gt;orange&lt;/h1&gt;
&lt;h1&gt;lemon&lt;/h1&gt;
</code></pre>
