I have this code here that should send off an alert…
jQuery(".wpcart_gallery .thickbox").click(function($){
alert('hi');
});
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?
Here is the HTML code
<div class="wpcart_gallery" style="text-align:center; padding-top:5px;">
<a class="thickbox cboxElement" href="DSC_0037.jpg" rev="DSC_0037.jpg"></a>
<a class="thickbox cboxElement" href="DSC_0036.jpg" rev="DSC_0036.jpg"></a>
<a class="thickbox cboxElement" href="DSC_0118.jpg" rev="DSC_0118.jpg"></a>
</div>
I am trying to have a click event when one of the links inside wpcart_gallery is clicked.
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
I fixed the issue by