jQuery: ‘this’ jQuery keyword

Last updated on:

How can we tell jQuery we only want to affect this particular div?

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

View Comments

Leave a Comment

Use markdown or basic HTML and be nice.