Sunday, August 30, 2009

[jQuery] Re: event-binding to dynamically created elements... (JSP vs JS problem......)

Even simpler:

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

No comments: