I have the following div element
<div id="row_1" class="active_page workorders_edit"></div>
And I want to be able to retrieve the class name workorders_edit. In my real case I only have access to the active_page class name
Please check my Fiddle for a better explanation. The end result should populate the id=”classname” with only “workorders_edit” and not “active_page workorders_edit”
Thank you.
http://jsfiddle.net/genesis/aaAyp/3/
Note: only works when active_page class is first in the class attribute, and workorders_edit is the next class in the class attribute… any variation of this will break