简体   繁体   中英

TypeError: jQuery(…).pajinate is not a function

I'm using jQuery Pajinate plugin and I'm having troubles. This script worked fine on my last host, but I had to make a migration and now I'm having some issues.

This is my code:

<script type="text/javascript" src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="template/irs/js/jquery.pajinate.js"></script>

<script type="text/javascript">
jQuery(document).ready(function(){
    jQuery('#viagens').pajinate({
        item_container_id : '.content',
        items_per_page : 8,
        start_page: 0,
        nav_label_first : '',
        nav_label_last : '',
        nav_label_prev : '< Anterior',
        nav_label_next : ' Próxima >'
    });
});
</script>

And i'm having this error:

TypeError: jQuery(...).pajinate is not a function

I already tried to use $ instead of jQuery and same results. And yes, I already used the search button but no results. Can anyone help-me?

Seems like you have conflict of jquery files. Go to the page source and check if you have more than one verison of jquery files references. Try to use jQuery.noConflict() and here is link to see further detail. http://blog.nemikor.com/2009/10/03/using-multiple-versions-of-jquery/

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