using this.addClass (Jquery)
<p>I am trying this.addclass in jquery to add a class to a DIV, that could be unknown. Can this be solved in this way? </p>

<pre><code>&lt;style&gt;.classOne { font-size:24px; color:#009900;}&lt;/style&gt;

&lt;script&gt;
function hello()
{   alert();
$(this).addClass('classOne');
}
&lt;/script&gt;

&lt;div class="something"  onclick="hello();"&gt; Test information &lt;/div&gt;
</code></pre>
