I need to get the name of the second class from an element like this:
<div class="item getthisclass"></div>
Using this will pick both classes:
var selectedClass = $(this).attr('class');
or this does not select anything.
$(this).not('.item').attr('class');
How can I do this?