WordPress.org

Ready to get started?Download WordPress

Forums

Infinite-Scroll
jQuery click function call after page load (2 posts)

  1. nlsubtitles
    Member
    Posted 2 years ago #

    Hi,

    Searched through the forums and on google, but can't seem to find a solution.

    For every post I have the following jQuery :
    <script> $(".norate-<?php the_ID(); ?>").one("click", function () { $(".norate-<?php the_ID(); ?>").toggleClass("rateclicked"); });</script>

    What do I put in the "Javascript to be called after the next posts are fetched" box?

    http://wordpress.org/extend/plugins/infinite-scroll/

  2. nlsubtitles
    Member
    Posted 2 years ago #

    Anybody? I've tried some stuff like just putting the jQuery in the callback box in the infinite scroll settings, but nothings seems to work.

    I'm not really a javascript wizard:P

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic