jquery function to detect if href of thumbnail matches src of full-size image?
<p>I have a thumbnail grid, with a full size image next to the grid.</p>

<pre><code> &lt;div id="gallery-thumbs"&gt; 
    &lt;ul class="thumb"&gt; 
    &lt;li&gt;&lt;a href="images/medium.jpg"&gt;&lt;img src="images/thumb.jpg" /&gt;&lt;/a&gt;&lt;/li&gt; 
    &lt;/ul&gt;
 &lt;/div&gt;
 &lt;div id="main-view"&gt; 
 &lt;img src="images/medium.jpg" /&gt; 
 &lt;/div&gt; 
</code></pre>

<p>I want to set up a jquery function that detects if the "href" attribute of ul.thumb li a, matches the src attribute of #main-view img.</p>

<p>And if does indeed match, change the opacity of the thumbnail image to 100%.</p>

<p>Any help would be appreciated.</p>

<p>Thank you.</p>
