Title: Need for correct callback
Last modified: August 21, 2016

---

# Need for correct callback

 *  [kasteddu](https://wordpress.org/support/users/kasteddu/)
 * (@kasteddu)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/need-for-correct-callback/)
 * i need a correct callback for this:
 * $(window).load(function(){
    $(document).ready(function() { $(“.toggle-trigger”).
   click(function() { $(this).parent().nextAll(‘#toggle-wrap’).first().toggle();});});});
 * can anyone tell me what to put in the callback in the settings of the plugin?
   THANKS!!!!!
 * [http://wordpress.org/plugins/infinite-scroll/](http://wordpress.org/plugins/infinite-scroll/)

Viewing 1 replies (of 1 total)

 *  [bigspring](https://wordpress.org/support/users/bigspring/)
 * (@bigspring)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/need-for-correct-callback/#post-4381647)
 * I’m looking for an answer to this too – there doesn’t seem to be a setting for
   the callback so I’m wondering if there’s another elegant way to do it.

Viewing 1 replies (of 1 total)

The topic ‘Need for correct callback’ 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/)

## Tags

 * [callback](https://wordpress.org/support/topic-tag/callback/)
 * [toggle](https://wordpress.org/support/topic-tag/toggle/)

 * 1 reply
 * 2 participants
 * Last reply from: [bigspring](https://wordpress.org/support/users/bigspring/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/need-for-correct-callback/#post-4381647)
 * Status: not resolved