title: Exact value of two variables need to be compared in JQuery
body: <p>I have the following piece of code:</p>
  
  <pre><code>$j('#row1').find('span.grpid').each(function() {
          groupIdNew = groupId.split("~")[0];
          var value = $j(this).html();
          if (value.match(groupIdNew)){
              $j(this).parents('tr').remove();
          }
      });
  </code></pre>
  
  <p>Problem is I need the value to exactly equal groupIdNew. (Eg: <code>test_11</code> should not match <code>test_1</code> as is the case with <code>.match()</code>, but exactly equal <code>test_11</code>). How do I do this? </p>