How to check if a table row has a class name without using hasClass()?
<p>I need to check whether a table row (TR) has a class by name.  So far, I have the following:</p>

<pre><code>var myClass = "myClass";

//only myClass if it doesn't exist already
if (!(rowGet.className == "myClass") || !(rowGet.className == "myClass anotherClass")) {
     if (rowGet) { // only add the class if TR exists
         rowGet.className = myClass;
     }
}
</code></pre>

<p>rowGet is a TR from a table.  When I tried hasClass(myClass), I get an error saying HTMLTableElement has no method hasClass.  Yes, I have jQuery referenced.</p>
