Each of the methods you mention accept (optionally) a single callback
function as a final argument. Neither accept more than one. See:
http://docs.jquery.com/Effects/toggle#speedcallback
http://docs.jquery.com/Effects/slideToggle#speedcallback
If you want to do something different in one case as
I have a simple bit of jQuery that I just can't get working.
$('#my-element').click(function(){
$('#list-element').slideToggle(function(){
$('#status-element').html('show artist index');
console.log('show');
2 matches
Mail list logo