Reputation: 215
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:
Upvotes: 0
Views: 55
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);
});
});
Upvotes: 1