Hi,
Suppose I have an element like this:
<div id="dv" class="red green blue">Something Here !!</div>
I used this:
alert($('#dv').attr('class'));
But it gives me all three at the same time, I need individually probably stored in an array.
How do I get each of those class names using jquery? Should be simple, right?