Cache selector in object (jquery)
<p>i've a problem... What am I doing wrong?</p>

<p>I want to use a selector previously saved in a variable. The idea is to use it within a function in an object.</p>

<pre><code>var escribir = {
    obj:$('#cont'),
    algo: function(i) { 
        escribir.obj.html(i++);
        setTimeout('escribir.algo('+i+')',1000);
    }
}

$(document).ready(
    function(){
    escribir.algo(0);
    }
);

....
&lt;div id="cont"&gt;&lt;/div&gt;
</code></pre>
