I know I can write Javascript to do this. Doesn't jQuery have a close parameter, there is nothing listing in the API ? I want to close a div, not have any effect as my current script.

    $('.close').click(function(c){
        $(this).fadeOut('50');
    }); 

Recommended Answers

All 2 Replies

Close? Do you mean hide without any type of animation? Not sure what you mean by close. Try...

 $(this).hide();

Thanks, hide() was the solution. :)

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.