JQuery Load() function
<pre><code>$(document).ready(function(){
    $("#btnLoad").click(function(){
        $('#div1').load('test.txt', {}, fnLoad());
    });
});

function fnLoad()
{
    // How can I load the content of &lt;div id="div1" /&gt; into a variable here?
}
</code></pre>

<p>In fact, I want to work with the variable instead of div1.innerHTML.</p>
