Even simpler:

$('img.thumb').click(function () {
    $(this).toggleClass('dim');
});

Reply via email to