Hive7
Hive7

Reputation: 215

My jquery .fadeOut() isn't working?

I have a jQuery function:

$(document).ready(function(){
    $('.div').click(function () {
        $(this).fadeOut(100);
    });
});

With some HTML:

<div class='div'>jhkhjk</div>

Though for some reason it isn't working.

Here is the fiddle for it:

http://jsfiddle.net/Cx5HG/

Upvotes: 0

Views: 55

Answers (1)

user2479785
user2479785

Reputation:

You forgot some sort of ajax file.

Here is a working fiddle

The Jquery is still the same:

$(document).ready(function(){
$('.div').click(function () {
    $(this).fadeOut(100);
});
});

http://jsfiddle.net/Cx5HG/1/

Upvotes: 1

Related Questions