jquery callback not working
<p>Can anyone tell me what I'm doing wrong in this jquery script? </p>

<pre><code>$(document).ready(function() { 
    $("a.book").click(function() {
        $(this).parent().next('div').slideToggle('slow', function(){
            $(this).toggleClass('bookopen');
        });
    });
});
</code></pre>

<p>I want the div to toggle, and then afterwards I want the element <code>$a.book</code> to change to <code>$a.bookopen</code>. But when I write the code above the toggle doesn't work. If I remove the callback function <code>toggleClass</code> the the <code>slideToggle</code> works just fine. </p>

<p>Any ideas? I appreciate your help.</p>
