Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Cookies for SlideToggle

I am implementing on a project where a footer has a option to close for an user,if it's closed next time on page load it will not show again.
I am trying to implement it's my code using jquery cookies plugin.I am stuck at somewhere around.

    $(".toggle-close").click(function(){
        if ($.cookie('toggler') == null) {
            $(".footer-container").slideToggle("slow");
            $.cookie('toggler','7');
        }
    });

Help is needed.

Tagged:
Sign In or Register to comment.