Function to when clicking on word hide div

Asked

Viewed 539 times

3

When rolling down the scroll in this example (http://jsfiddle.net/wanderstone/6pv54/3/ ) you will notice that there is a box that stays fixed with the word "close".

When you click on the word "close" it disappears, but when you scroll the page again it reappears.

I would like a help in adjusting the functions in addition to keep running the scroll fixed, by clicking 'close' it disappears and no longer appears (until the next refresh of the page.)

Follow the link http://jsfiddle.net/wanderstone/6pv54/3/

1 answer

3


Remove page element after fadeOut

//fechar box
$("#close-link").click(function(){
    $('.element').fadeOut(function(){
        $(this).remove();
    });
});
  • Show!! Thank you man

Browser other questions tagged

You are not signed in. Login or sign up in order to post.