Not getting a variable value?
<p>I am not getting the value of the variable of "img_srt" in load function, can any body helps me?</p>

<pre><code>$(document).ready(function() {
    Get_var();
})

var img_srt='&lt;div&gt;address&lt;/div&gt;';   

function Get_var() {
    $("&lt;img /&gt;").attr("src","http://www.google.com/intl/en_ALL/images/logo.gif")
        .load(function() {
            if (this.height &gt; 0) {
                img_srt += "&lt;div&gt;&lt;img src='http://www.google.com/intl/en_ALL/images/logo.gif'/&gt;&lt;/div&gt;";   
            }
        })
    alert(img_srt);
}
</code></pre>
