Member Avatar for Aardwolf
NotiOpened = '0';
    if (NotiOpened == '0';) {
        $("#notification").slideDown("slow");
        $('#notification').load('notification.php');
        NotiOpened = '1';
    } else {
        $("#notification").slideUp("slow");
        NotiOpened = '0';
    }

what's wrong with it?

Recommended Answers

All 4 Replies

What doesn't it do? Is this all code? For one, remove the semi colon is the first if.

Member Avatar for Aardwolf

It doesn't slide back up after sliding down

Do you want it to automatically slide back up? Use the callback from slideDown, to slide it back up again.

or put the full code

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.