jquery prev - with selector
<p>Why does the following code change all of the TDs in the table with the class=dupegroup red?  The TD that fires the click event has a checkbox in it. I want to know the value of the first TD in the row so I put a class=dupegroup on it. The ajax call updates the database. This is just a test so I could figure out a way to get the value of the first TD. </p>

<pre><code>$('.notdupe').live('click', function (e) {
    $.ajax({
      type: "POST",
      url: "cfc/basic.cfc?method=SetNotDupe",
      data: "indivNum=" + $(e.target).val() + "&amp;SetValue=" + $(e.target).is(":checked"),
      error: function (xhr, textStatus, errorThrown) {
      }
    });
        $('td').prev('.dupegroup').css('background-color', 'red');
  });
</code></pre>

<hr>

<p><em>adding HTML from comment...</em></p>

<pre><code>&lt;td class="dupegroup"&gt;#dupe_group_number#&lt;/td&gt; 
&lt;td&gt;
    &lt;input type="checkbox" name="UserIDList" value="#userid#"/&gt;
&lt;/td&gt; 
&lt;td&gt;
    &lt;a href="#request.controlURL#individuals/?fa=viewIndiv&amp;dkey=#userid#" target="_blank"&gt;
        #userid# 
&lt;/td&gt; 
&lt;td&gt;#lastname#&lt;/td&gt; 
&lt;td&gt;#firstname#&lt;/td&gt; 
&lt;td&gt;#nickname#&lt;/td&gt; 
&lt;td&gt;#companyname#&lt;/td&gt; 
&lt;td&gt;#address1#&lt;/td&gt; 
&lt;td&gt;#zipcode#&lt;/td&gt; 
&lt;td&gt;#state#&lt;/td&gt; 
&lt;td align="center"&gt;
    &lt;input class="notdupe" type="checkbox" name="indivID" value="#userid#" checked /&gt;
&lt;/td&gt;
</code></pre>
