Click query never work
<p>I am doing a javascript script that work like bookmark. After allot of code i need to click in one of the divs I got but i can't get it. If I put mouseover it works but no with click</p>

<p>I am using query</p>

<p>js:</p>

<pre><code>var $j = jQuery.noConflict();
  $j('&lt;div&gt;&lt;/div&gt;').prependTo($j(this)).attr('id', 'shadow').css({
                'height': '220px',
                'width': '220px',
                'background-color': 'black',
                'position': 'absolute',
                'top': 0,
                'left': 0,
                'opacity': 0.4,
                'cursor': 'pointer'
            }).click(function() { //this dons't work i try to put apart
                                   //But if I put bind('mouseover' it works
                alert('a');
                //...more stuff

            });
</code></pre>

<p>In my HTML code its get like this:</p>

<pre><code>&lt;div id="div0" class="div" style="position: relative; "&gt;
     &lt;div id="shadow" style="height: 220px; width: 220px; background-color: black; position: absolute; top: 0px; left: 0px; opacity: 0.4; cursor: pointer; "&gt;&lt;/div&gt;
     &lt;img class="select" id="select0" src="url..." onclick="alert('aaa')"&gt;
     &lt;img src="url..." class="img" id="img0" height="62" width="220" style="margin-top:79px"&gt;&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>I put an alert directly to the image and it doesn't work neither</p>

<p>Thanks for all the help </p>
