how can I intercept a click for all img's ? I have a bunch of images, each needs to reply to a click.
<p>I would like to present images to my users, where they can select them. I need them to select a limited number, say 5, so:
The images are shown in a matrix, and the user can click them.
I thought:</p>

<pre><code>function boom()
{

this.css('background-color','#fff');
this.data('clicked','yes'); 

// I should also make checks here to see how many were clicked already

}

$('img').click(boom); 
</code></pre>

<p>// I thought this would connect all img's that were clicked upon to this function, where I can call the 'this' with the css function... </p>

<p>But it doesn't work as I thought it would...</p>

<p>Any help would do, thanks !</p>
