The code above is what I would like to get working. This code attaches a "Get more posts" at the bottom if a UL with search results. This code, howevere, fires the getMorePosts() automatically, without any click from the user. It doesn't fire again when the li is clicked, so something is wrong.
I've been trying this as well to get the click bind at least working, but still no luck: