Return First Part of HTML Class Name
<p>I have a number of table rows that are each assigned several classes. And one of those classes will be <em>IndexN</em>, where <em>N</em> is a number from 0 to 5 or so.</p>

<p>What is the easiest way to get the value of <em>N</em> for a given row.</p>

<p>I know I can use <code>hasClass()</code> but that would require calling it for all possible values of <em>N</em>. I also assume I can simply get the value of the <code>class</code> attribute but this will include the other classes as well.</p>

<p>Is there a better way?</p>
