update attr value in jquery everytime
<p>guys i'm using a plugin to autoload when i scroll down and this is my jquery code :</p>

<pre><code>jQuery('#displayimagesDiv').scrollExtend(
                {   

                    'target': '#displayimagesDiv',          
                    'url': $('#nexturl:last').attr('href'),
                    'loadingIndicatorEnabled' :  true,
                    'loadingIndicatorClass' : 'loading',
                    'onSuccess' :{}

                }
            );
</code></pre>

<p>the HTML code :</p>

<pre><code>&lt;a id="nexturl" href="{{URL::current()}}?page={{$images-&gt;page+1}}" style="display:none"&gt;#&lt;/a&gt;
</code></pre>

<p>the problem is when i scroll for the first time it doesn't update the value of the #nexturl:last selector value so i got everytime the old url (example.com/?page=1) instead of (example.com/?page=2) .
any help plz .</p>
