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?

Recommended Answers

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

Jump to Post

All 4 Replies

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

Be a part of the DaniWeb community

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