Set active link based on URL
<p>If the URL ends: <code>?style=product</code> I want to add a class of <code>active</code> to the <code>li</code> with the class of <code>product</code></p>

<p>HTML:</p>

<pre><code>&lt;ul id="menulist"&gt;
  &lt;li class="product"&gt;Product&lt;/li&gt;
  &lt;li class="product2"&gt;Product 2&lt;/li&gt;
  &lt;li class="product3"&gt;Product 3&lt;/li&gt;
&lt;/ul&gt;
</code></pre>
