Using .slideToggle()
Using .slideToggle()
Hello.
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>
<html>
<head>
<style>
</style>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
</head>
<body>
<div id="clickme">click me</div>
<img id="book" src="book.png" alt="" width="100" height="123" />
<script>
$(window).load(function() {
$('#clickme').click(function() {
var test = $('#book').slideToggle(600, 'linear', function() {
// Animation complete.
}).done(function() {});
//console.log($(test).done());
//test.done();
});
});
</script>
</body>
</html>
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?
Jim