Match a href-class with div-class in if-statement
<p>I´d really like some help with this one... I'm building a filterbox for portfolio-items. </p>

<p>I have four links each with one classname, the same as their text. All portfolio items are listed besides. Each portfolio item is in a div with two classes — .listItem AND one of the links classes. </p>

<p>Example: <code>&lt;a class="Architecture" href="#"&gt;</code></p>

<p>The div I want to animate on a-click is: <code>&lt;div class="listItem Architecture"&gt;</code></p>

<p>This is my script and it´s not working... </p>

<pre><code>$(document).ready(function(){

    var filterTrig = $('#sortPort a').attr('class');

    $('#sortPort a').click(function() {
        $('.listItem').each(function(){
            if ($(this).is(filterTrig)){
                $(this).hide();
            }
        });

        return false;
    });
});
</code></pre>
