Jquery load more on scroll
<p>I am trying to load data from load_second.php into result div. When I scroll down on first time it loads the data from load_second.php, however, I want to keep that data and when I scroll again it should load more data. Any help would be greatly appreciated.</p>

<pre><code>&lt;script type='text/javascript'&gt;$(window).scroll(function(){ 
    if ($(window).scrollTop() == $(document).height() - $(window).height()){

        $('#result').load('load_second.php');

    }
});
&lt;/script&gt;

&lt;div id='result'&gt;&lt;/div&gt;
</code></pre>
