Jquery toggle doesn't work properly
<p>I have this Jquery code:</p>

<pre><code> $('.item_bar_action_holder_drop a').click(function() {
            var item_bar = $('.item_bar_action_holder_actions');
            if(item_bar.is(':visible')) {
                $(this).removeClass('active');
            } else {
                $(this).addClass('active');
            }
            item_bar.slideToggle('fast', function() {
            });
        });
</code></pre>

<p>The problem here is when I click many times the button the "active" class will set to a closed panel and its wrong. I cant understand why it happend. </p>
