It seems one of my toggle()
functions have depreciated, I am just wondering what a suitable replacement would be. I have searched but can't seem to find a clear answer, can anyone help?
Here is my code
$( ".open-btn" ).toggle(function() {
$(".foldable").css( "height", "517px" );
$(".open-btn a").text( "CLOSE MENU" );
$(".reserve-btn").fadeIn();
}, function() {
$(".foldable").css( "height", "0px" );
$(".open-btn a").text( "SHOW MENU" );
$(".reserve-btn").fadeOut();
});