title: jQuery: Check to see if table row containing certain values exists already
body: <p>I have a jQuery script that appends a row to a table. In short, the user can select a value from a drop down menu, then enter in 'x' amount of months and hits 'add', which appends the row to the table.  For example the following row is appended by the user:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;tr&gt;
    &lt;td&gt;Some Value&lt;/td&gt;
    &lt;td&gt;2&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  <p>Now, if the user performs the same operation again, I need to stop the procedure and alert him that he is trying to add a duplicate value. How - using jQuery - can I check to see whether or not the above row already exists, where the first and second <code>&lt;td&gt;</code> elements have the same value as the data he is trying to add? The reason I say first and second <code>&lt;td&gt;</code> elements only is because there are other <code>&lt;td&gt;</code> elements in the row but they house hidden fields which submit the newly added data to to a server side script, so I'd like to keep the validation as short and simple as possible.</p>
  <p>If it is of any help, the table ID is <code>#tblspecializations</code></p>
  <p>Many thanks for your input.</p>