I need to select all elements that have a class name that is the last element of the class list. So I may have class=class1 class2 class3 for one element and class=class3 class1 class2 for another... I only want to affect everything that has the last class as class3. So in this example, the first element should be chosen and the second should not even though they both have class3.
Let me know if that doesn't make sense and I can post a more complete example. Any help is appreciated.