Member Avatar
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?

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

Member Avatar

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