Using .slideToggle()

Using .slideToggle()


I am trying to figure out how to use some of the options for .slideToggle() . I have a small snippet of code below:

<!DOCTYPE html>

<script src=""></script>

<div id="clickme">click me</div>
<img id="book" src="book.png" alt="" width="100" height="123" />
$(window).load(function() {

$('#clickme').click(function() {

var test = $('#book').slideToggle(600, 'linear', function() {
// Animation complete.
}).done(function() {});



I am trying to use the done method. I figure I can use chaining here as well. But when I try and chain the .done method I get an error of, "Uncaught TypeError: Object [object Object] has no method 'done'"

Anyone know what is wrong?