Title: [Plugin: Infinite-Scroll] jQuery click function call after page load
Last modified: August 20, 2016

---

# [Plugin: Infinite-Scroll] jQuery click function call after page load

 *  [nlsubtitles](https://wordpress.org/support/users/nlsubtitles/)
 * (@nlsubtitles)
 * [14 years ago](https://wordpress.org/support/topic/plugin-infinite-scroll-jquery-click-function-call-after-page-load/)
 * 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/](http://wordpress.org/extend/plugins/infinite-scroll/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [nlsubtitles](https://wordpress.org/support/users/nlsubtitles/)
 * (@nlsubtitles)
 * [14 years ago](https://wordpress.org/support/topic/plugin-infinite-scroll-jquery-click-function-call-after-page-load/#post-2761560)
 * 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

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Infinite-Scroll] jQuery click function call after page load’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/infinite-scroll.svg)
 * [Infinite-Scroll](https://wordpress.org/plugins/infinite-scroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/infinite-scroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/infinite-scroll/)
 * [Active Topics](https://wordpress.org/support/plugin/infinite-scroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/infinite-scroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/infinite-scroll/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [nlsubtitles](https://wordpress.org/support/users/nlsubtitles/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-infinite-scroll-jquery-click-function-call-after-page-load/#post-2761560)
 * Status: not resolved