简体   繁体   中英

I am trying to get jQzoom to work

I am getting a type error undefined in my javascript when I inspect it in firebug. I am using wordpress and am using query. I have enqued my scripts and they show up when I inspect the page. when i look at the call for the Jqzoom i get the following error.

LINK TO SITE

http://www.goodmorningmoon.ca/shop/deer/ pass: springy88

jquery TypeError: 'undefined' is not a function(evaluating '$(window)')

javascript call to jqzoom

$(document).ready(function(){  
    $('.MYCLASS').jqzoom();  
});

html markup

<a href="http://img.dailymail.co.uk/i/pix/2008/05_03/bigcowBNS_468x341.jpg" class="MYCLASS" title="MYTITLE"> 
                        <img src="<?php echo $image[0]; ?>" alt="<?php get_the_title(get_field('purchaseImage1')) ?>" title="IMAGE TITLE"/>
                    </a>

I needed to wrap my document in jQuery(document).ready

jQuery(document).ready(function ($) {
$('.MYCLASS').jqzoom(); 
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM