What can replace toggle ()?
Tell me, how can I write the code differently, because toggle () was removed, there is an equivalent?
$('switchGal').toggle(
function(){
$('#gallery').slideDown(1000);
},
function(){
$('#gallery').slideUp(1000);
})
Thank you!