Hey guys I know that there exists .slideToggle() but I want to add more features later.
I don't know what I'm doing wrong, sliding up works but I cannot slide down.
Can I not overwrite my var? Would be very nice when somebody can help me.
$(document).ready(function () {
    var resizeValue = true;
    $(".resizeSelect").click(function () {
        if (resizeValue === true) {
            $(".resize").slideUp(
            function () {
                $('.parent').height($('.child').height('100'));
            });
            var resizeValue = false;
        } else {
            $(".resize").slideDown(
            function () {
                $('.parent').height($('.child').height('100'));
            });
            var resizeValue = true
        };
    });
});
 
     
     
     
    