> Making an image fade in when i click it! J query?

Making an image fade in when i click it! J query?

Posted at: 2014-12-18 
Iv been trying to get this to work for about 2 hours and i really need help.

Here is what i have.

$(document).ready(function(){

$('.moon').css('opacity', 0.4);

$('.moon').click(function(){

$(this).find('img').stop().fadeTo('slow',1);

});

});

The first part works, the image starts faded.

The second part half works. If i set the selector to "*" like "$('*').click(function(){" and randomly click on the page it fades in but if i change that to "$('.moon').click(function(){" and click the image it does not work :( help!