Hi,
I have a table row elements:
... <tr index="1000" class="class1 classHighlightRed"> ...
... <tr index="1000" class="class1 classHighlightYellow"> ...
I would like to check the value of the second class against some constants.
E.g.
If (2nd class == "classHighlightRed") Then
{
doSomeWork;
}
At the moment I'm achieving this through the following hack:
var 2ndClass = $(this).attr("class").substring(7);
Is there a nicer way to achieve this?