Not sure if you can do this, but I want to select the first of two element classes with jQuery and return it only for the first class.
<div class="module blue">
I want to return 'module'.
tried this:
var state = $('body').attr('class').first();
but none of this works, thanks for any advice.
source
share