Want to color values in td on condition using jquery
<p>I want to color negative values to red based on condition, I am doing like this now:</p>

<pre><code>$('td.numeric:contains('-')").addClass("negative")
</code></pre>

<p>above code find td which have class name numeric and if value contains '-', it applies class 'negative' to that td.</p>

<p>My problem is that, if I apply numeric class to for example date values which also contains '-' as separator and makes date to color red.</p>

<p>So my question is that How can I find td with values startwith '-'?</p>

<p>like </p>

<pre><code>$('td.numeric:startwith('-')").addClass("negative")
</code></pre>

<p>CSS</p>

<pre><code>.numeric {  text-align:right; }
.negative { text-align:right; color:red; }
</code></pre>
