Close div when clicked

Out of context: Reply #6

  • Started
  • Last post
  • 25 Responses
  • ********
    0

    You didn't give me exactly what you were doing.

    $("div").click(function(){
    $(this).fadeOut(300);
    });

    That is just a suggestion. Have you included it in a $(document).ready, and have you loaded the jQuery library.

    I just tested the code on a page with jQuery loaded, no prototype, and within a doc/ready and it worked fine.

View thread