How to return variable from jquery function
<p>can you help me please...
How to return variable from jquery function</p>

<pre><code>var height = $(window).height();

$(window).resize(function(){
    var height = $(window).height();
    return height;
});

setInterval(function() {
    $('div').append( 'Index: ' +  height );
}, 500);
</code></pre>
