Adding an event handler - a bug?


#1

Is there anything wrong with this code?
I followed the guidelines, but after clicking "save * submit" and clicking the planet, it does not disappear and I get the following error message:
"Uncaught TypeError: "div".click is not a function"

I also tried resetting the code. Didn't help.

If it's a bug, how can I handle it?


<script>
$(document).ready(function() {
('div').click(function() {
        $(this).fadeOut('fast');
    });
});
</script>


#2

Forgot the $ before the ('div').. now it works just fine.
SOLVED!


#3