hasClass and dynamic class
<p>I can't understant if it is my use of <code>hasClass</code> or an issue with my <code>var sectionClass</code> but my script won't work. (My <code>console.log</code> return my class name very well).</p>

<pre><code>$('#menu button').each(function(){
    var sectionClass = $(this).attr('class');
    $(this).click(function(){
        console.log (sectionClass);
        $('section').hasClass(sectionClass).show();
    });
});
</code></pre>
