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?
<style>.classOne { font-size:24px; color:#009900;}</style>
<script>
function hello()
{ alert();
$(this).addClass('classOne');
}
</script>
<div class="something" onclick="hello();"> Test information </div>