Is there a way jQuery .load() can update a <div> only if the data is different?
<p>Right now my code looks like this:</p>

<pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
        $.ajaxSetup({
            cache: false
        });

        var loadUrl = "&lt;?php echo site_url("admin/get_uploads"); ?&gt;";  

        $("#result").load(loadUrl);

        var refreshId = setInterval(function() {
            $("#result").load(loadUrl);
        }, 1000);
    });
&lt;/script&gt;
</code></pre>

<p>The problem is that the  gets refreshed every second, therefore if I have something selected within that div, after a second, the select resets to non-selected.</p>

<p>Is there a way to have jQuery to only bring in new data if it's available and not refresh the  every second?</p>
