$(this).attr() not working
<p>I'm testing a script that will allow my classmates to upload a picture and I'm using this code:</p>

<pre><code>var SomeVar = this.class //or similar like this.attr('class')
$('body').attr('style', 'background-image:' + SomeVar)
</code></pre>

<p>However, when I'm testing this code:</p>

<pre><code>function Prueba() {
    var hola = this.class
    alert(hola)
}
</code></pre>

<p>it alerts <code>undefined</code>.</p>

<p>You can see the webpage at <a href="http://8a13.zzl.org" rel="nofollow">8a13.zzl.org</a>.</p>
