How to implement a click function for an element within a tiled grid that when clicked it & elements in it's proximity fade out
<p>I am trying to make a fairly simple grid game where users have to click tiles to reveal content underneath. The first issue i'm struggling with is implementing a click function that would remove not only the tile clicked but also a few tiles around it, preferably random.</p>

<p>My current code:</p>

<pre><code>        $('.layer img').click(function() {
            $(this).css ('display', 'none');
        });
</code></pre>

<p>Any help extending my simple code much appreciated.</p>
