5/11


#1

I feel like this code is correct, but the div doesnt respond to dblclick. Any idea what I'm doing wrong?

$(document).ready(function(){
$('div').dblclick(function(){
(this).fadeOut('fast');
});
});


#2

Hi Kallistai,

You're missing the default jQuery selector, a dollar sign ($) in front of (this) on line 3 :)


#3

To clarify, the $ sign is the alias for jQuery, a function, not a selector. The selector is what we pass as the argument to create a jQuery selector. the result of which is a jQuery object. But I'm sure you know all this already. Just clarifying, is all.