Hambach
Thomas

2012-02-16 20:34:21

Javascript / jQuery get first class name of element

Need to get the first class name of an element? Simple! Imagine having a link with 3 class names

https://gist.github.com/ThomasHambach/5193734

Will result in: class1