title: Jquery check if tr has no item with class and delete duplicates
body: <p>I have such html table:</p>
  
  <pre><code>&lt;div class="1233"&gt;hello&lt;/div&gt;
  &lt;table cellpadding="0" cellspasing="0" class="sortable zebra tablesorter tablesorter-default"
  id="articles-table"&gt;
      &lt;thead&gt;
          &lt;tr class="tablesorter-headerRow"&gt;
              &lt;th data-column="0" class="tablesorter-header"&gt;
                  &lt;div class="tablesorter-header-inner"&gt;Производитель&lt;i class="tablesorter-icon"&gt;&lt;/i&gt;
                  &lt;/div&gt;
              &lt;/th&gt;
              &lt;th data-column="1" class="tablesorter-header"&gt;
                  &lt;div class="tablesorter-header-inner"&gt;Артикул&lt;i class="tablesorter-icon"&gt;&lt;/i&gt;
                  &lt;/div&gt;
              &lt;/th&gt;
              &lt;th data-column="2" class="tablesorter-header"&gt;
                  &lt;div class="tablesorter-header-inner"&gt;Описание&lt;i class="tablesorter-icon"&gt;&lt;/i&gt;
                  &lt;/div&gt;
              &lt;/th&gt;
              &lt;th data-column="3" class="tablesorter-header"&gt;
                  &lt;div class="tablesorter-header-inner"&gt;&lt;i class="tablesorter-icon"&gt;&lt;/i&gt;
                  &lt;/div&gt;
              &lt;/th&gt;
              &lt;th class="prcol  tablesorter-header tablesorter-headerSortDown" data-column="4"&gt;
                  &lt;div class="tablesorter-header-inner"&gt;Цена&lt;i class="tablesorter-icon"&gt;&lt;/i&gt;
                  &lt;/div&gt;
              &lt;/th&gt;
              &lt;th data-column="5" class="tablesorter-header"&gt;
                  &lt;div class="tablesorter-header-inner"&gt;Наличие&lt;i class="tablesorter-icon"&gt;&lt;/i&gt;
                  &lt;/div&gt;
              &lt;/th&gt;
              &lt;th data-column="6" class="tablesorter-header"&gt;
                  &lt;div class="tablesorter-header-inner"&gt;Сроки поставки&lt;i class="tablesorter-icon"&gt;&lt;/i&gt;
                  &lt;/div&gt;
              &lt;/th&gt;
              &lt;th data-column="7" class="tablesorter-header"&gt;
                  &lt;div class="tablesorter-header-inner"&gt;&lt;i class="tablesorter-icon"&gt;&lt;/i&gt;
                  &lt;/div&gt;
              &lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody class="analogs_art"&gt;
          &lt;tr class="zebra-stripe zebra-grey zebra2 even"&gt;
              &lt;td&gt;
                   &lt;h5&gt;Knecht&lt;/h5&gt;
              &lt;/td&gt;
              &lt;td&gt;
                   &lt;h4&gt;OC90&lt;/h4&gt;
              &lt;/td&gt;
              &lt;td style="max-width: 300px;"&gt;(07786171)Фильтр масл OPEL (07786171)Фильтр масл OPEL&lt;/td&gt;
              &lt;td&gt;&lt;/td&gt;
              &lt;td&gt;6124&lt;/td&gt;
              &lt;td&gt;20&lt;/td&gt;
              &lt;td&gt;0-1&lt;/td&gt;
              &lt;td id="to_cart_and_qnt_td"&gt;
                  &lt;form accept-charset="UTF-8" action="/line_items" method="post"&gt;
                      &lt;div style="margin:0;padding:0;display:inline"&gt;
                          &lt;input name="utf8" type="hidden" value="✓"&gt;
                          &lt;input name="authenticity_token" type="hidden" value="0jlRLSkDKi6eM5SSL+3uRB0w2G141KUcJKuy4Bg2YNo="&gt;
                      &lt;/div&gt;
                      &lt;input id="ART" name="ART" type="hidden" value="y1M1ZtdXgnMe6pOjjuXWPqhYR41SmQRKzlDOQ1uPwuru+AamPGpcOwOFFylbRDu5M1XUawCnukqNDQCuIr0JPA==--vNGx6/lYKRrpD5NGTJALcQ=="&gt;
                      &lt;input id="price" name="price" type="hidden" value="TodzvfOZCbK5T9+RLE1IQg==--qq8o30c5rTX91F8W42wdsQ=="&gt;
                      &lt;input id="distributor_id" name="distributor_id" type="hidden" value="6"&gt;
                      &lt;input id="waittime" name="waittime" type="hidden" value="1"&gt;
                      &lt;input class="qnt_to_cart2" id="OC90" name="cart_quantity" pattern="0|[1-9]\d{0,2}"
                      required="required" type="text" value="1"&gt;
                      &lt;input class="orange-button to-cart_no" id="OC90" name="commit" type="submit"
                      value="В корзину"&gt;
                  &lt;/form&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr class="zebra-stripe zebra-grey zebra2 odd"&gt;
              &lt;td&gt;
                   &lt;h5&gt;KNECHT&lt;/h5&gt;
              &lt;/td&gt;
              &lt;td&gt;
                   &lt;h4&gt;OC 90&lt;/h4&gt;
              &lt;/td&gt;
              &lt;td style="max-width: 300px;"&gt;Масляный фильтр&lt;/td&gt;
              &lt;td&gt; &lt;a href="/articles/1248525/details" class="details-link"&gt;подробнее&lt;/a&gt;
  
                  &lt;a
                  href="/articles/1248525" class="analogs-link"&gt;аналоги&lt;/a&gt;
              &lt;/td&gt;
              &lt;td&gt;6124&lt;/td&gt;
              &lt;td&gt;20&lt;/td&gt;
              &lt;td&gt;0-1&lt;/td&gt;
              &lt;td id="to_cart_and_qnt_td"&gt;
                  &lt;form accept-charset="UTF-8" action="/line_items" method="post"&gt;
                      &lt;div style="margin:0;padding:0;display:inline"&gt;
                          &lt;input name="utf8" type="hidden" value="✓"&gt;
                          &lt;input name="authenticity_token" type="hidden" value="0jlRLSkDKi6eM5SSL+3uRB0w2G141KUcJKuy4Bg2YNo="&gt;
                      &lt;/div&gt;
                      &lt;input id="ART" name="ART" type="hidden" value="9x6mdLbW2aMaHqFK32kZwHWnWA7n0GBp/jXS8KeECsTS+78ytG0SQzFpVODplws5iHm6B6SkZzi3ej2+zpW8iQ==--RNoUUgcZu7MLU8BHJ4ynSQ=="&gt;
                      &lt;input id="price" name="price" type="hidden" value="VqatEYzkPEf3P9Y/jNY9Zg==--Iw5nQDqjK9vvZX/RecD1eA=="&gt;
                      &lt;input id="distributor_id" name="distributor_id" type="hidden" value="6"&gt;
                      &lt;input id="waittime" name="waittime" type="hidden" value="1"&gt;
                      &lt;input class="qnt_to_cart" id="cart_quantity" name="cart_quantity" pattern="0|[1-9]\d{0,2}"
                      required="required" type="text" value="1"&gt;
                      &lt;input class="orange-button to-cart" name="commit" type="submit" value="В корзину"&gt;
                  &lt;/form&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr class="zebra-stripe zebra-grey zebra1 even"&gt;
              &lt;td&gt;
                   &lt;h5&gt;Knecht&lt;/h5&gt;
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;h4&gt;OC90&lt;/h4&gt;
              &lt;/td&gt;
              &lt;td style="max-width: 300px;"&gt;Фильтр масляный OPEL/GM/DAEWOO Фильтр масляный OPEL/GM/DAEWOO&lt;/td&gt;
              &lt;td&gt;&lt;/td&gt;
              &lt;td&gt;6142&lt;/td&gt;
              &lt;td&gt;1000&lt;/td&gt;
              &lt;td&gt;3&lt;/td&gt;
              &lt;td id="to_cart_and_qnt_td"&gt;
                  &lt;form accept-charset="UTF-8" action="/line_items" method="post"&gt;
                      &lt;div style="margin:0;padding:0;display:inline"&gt;
                          &lt;input name="utf8" type="hidden" value="✓"&gt;
                          &lt;input name="authenticity_token" type="hidden" value="0jlRLSkDKi6eM5SSL+3uRB0w2G141KUcJKuy4Bg2YNo="&gt;
                      &lt;/div&gt;
                      &lt;input id="ART" name="ART" type="hidden" value="NqgWSvcdv0FEQkjcJZp98gIYe20Fjol8Bn31tB/CjWnTFVsa3J3hmldO1RSqS/pNUcVZ5dh0wcP7YeZxPAkQc4DEPKy7EVuTpMw3oQw58T0=--/XCn0hP3w0mglJ1vTXSjHw=="&gt;
                      &lt;input id="price" name="price" type="hidden" value="mFPLSHh7AdEMpQJiZHFKNg==--hfJQGWhjBoD6mNAetXZ3Xw=="&gt;
                      &lt;input id="distributor_id" name="distributor_id" type="hidden" value="6"&gt;
                      &lt;input id="waittime" name="waittime" type="hidden" value="3"&gt;
                      &lt;input class="qnt_to_cart2" id="OC90" name="cart_quantity" pattern="0|[1-9]\d{0,2}"
                      required="required" type="text" value="1"&gt;
                      &lt;input class="orange-button to-cart_no" id="OC90" name="commit" type="submit"
                      value="В корзину"&gt;
                  &lt;/form&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>How in my jscript:</p>
  
  <pre><code>if(tr.not('.details-link')){
  </code></pre>
  
  <p>i could leave alone such td's where i didn't have class = details-link ? 
  Now my code is not working....</p>
  
  <p>Just skip edit my code, so that if tr has no class, i do something.... How to do this?</p>
  
  <p><strong>upd</strong>
  I need to do this for this:
  <strong><a href="http://jsfiddle.net/zvKSc/8/" rel="nofollow">http://jsfiddle.net/zvKSc/8/</a></strong></p>
  
  <p>to delete duplicates (1,2,5 columns via lowercase and deleting spaces must be equal...), but leave on page such tr, where in one of td i have class details-link... So in fiddle from three i must delete first, and leave second and third tr</p>