I would like to get the value of the class attribute for an element using JavaScript. However in this particular situation I don\'t have the luxury of libr
Remember:
If you get an error and className does not work this can be due to your element being a jQuery object.
In the picture above you see that I canot use className on a jQuery object