Trying to implement a check for the CSS 'display' property being set to "none", then slideDown the element "menuBK". If not, slideUp "menuBK" but encountering an error in my IF statement.
$(document).ready(function(){
$("#burger").click(function(){
if ($("#menuBK").css("display") == "none") {
$("#menuBK").slideDown('slow');
$('body').addClass('noscroll');
} else {
$("#menuBK").slideUp('slow');
$('body').removeClass('noscroll');
}
});
});