Why this Jquery function does not display me an alert box?
<p>I observed when I put the ready event the function works but as I remove it It does not..</p>

<p>Works.</p>

<pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready( function() {
        $('.clicky').click( function() {
            alert("TEst10");
            $(this).addClass('clicked');
            alert("TEst10");
            setTimeout( function() {
                $(this).removeClass('clicked');
            }, 1000 );
        });
    });
&lt;/script&gt;
</code></pre>

<p>Not work</p>

<pre><code>&lt;script type="text/javascript"&gt;
    $('.clicky').click( function() {
        alert("TEst10");
        $(this).addClass('clicked');
        alert("TEst10");
        setTimeout( function() {
            $(this).removeClass('clicked');
        }, 1000 );
    });
&lt;/script&gt;
</code></pre>

<p>Why the second one does not work?</p>
