Jquery - putting variables in :contains()
<p>I am trying to write a simple piece of Jquery in which the script will check whether a table cell contains a range of numbers.</p>

<p>I'm unsure how to do this, because if you were to do something like this:</p>

<pre><code>var num_range = "&gt;1";
$("td:contains(" + num_range + ")").css('background-color', '#000');
</code></pre>

<p>...the script only detects if the td contains the exact text ">1", rather than what I'm after, it detecting whether any tds contain any numbers greater than 1. (Any then styling the background)</p>

<p>Thanks for any help, I'm a Javascript/Jquery novice! </p>
