How to get the class of a field by javascript?
<p>i want to execute an if condition based on its class</p>

<pre><code>var follow = document.getElementById('follow');

if(the class of the variable follow is active){

do this...


}
else{

do this...


}
</code></pre>

<p>how can i do it in javascript?</p>
