How to get class name through JavaScript
<p>How do I get the class name through JavaScript given no id with this <code>span</code>.</p>

<p>Like: <code>&lt;span class="xyz"&gt;&lt;/span&gt;</code> </p>

<p>I want to change the background color of this <code>span</code>.</p>

<p>How can I solve this? Please help me.</p>
