title: Wordpress jQuery click event
body: <p>I have this code here that should send off an alert...</p>
  
  <pre><code>jQuery(".wpcart_gallery .thickbox").click(function($){
              alert('hi');
          });
  </code></pre>
  
  <p>But it doesnt work :( there are no errors and the alert never appears. I have the correct JQuery.js file in my header...is there something wrong with my syntax?</p>
  
  <p>Here is the HTML code</p>
  
  <pre><code>&lt;div class="wpcart_gallery" style="text-align:center; padding-top:5px;"&gt;
  &lt;a class="thickbox cboxElement" href="DSC_0037.jpg" rev="DSC_0037.jpg"&gt;&lt;/a&gt;
  &lt;a class="thickbox cboxElement" href="DSC_0036.jpg"  rev="DSC_0036.jpg"&gt;&lt;/a&gt;
  &lt;a class="thickbox cboxElement" href="DSC_0118.jpg" rev="DSC_0118.jpg"&gt;&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am trying to have a click event when one of the links inside wpcart_gallery is clicked.</p>
  
  <p>Here is the page, blow the big image there are three images, I am looking for click event to trigger if any of those images are clicked...http://www.taranmarlowjewelry.com/?wpsc-product=product-1-2</p>