Let's consider the following scenario:
<span class="foo">7</span>
<span class="foo">2</span>
<span class="foo">9</span>
We want to assign a CSS class of 'highest' to 'span.foo' with value greater than 7, a CSS class of 'medium' to values > 4 and <= 7, and a CSS class of 'lowest' to values <= 4.
Here is an example of the desired result:
<span class="foo medium">7</span>
<span class="foo lowest">2</span>
<span class="foo highest">9</span>
Is this a situation where finding and filtering data is necessary? It seems like a common problem, but I am struggling to find the most efficient way to solve it. Thank you!