title: jQuery Elegant Way See If All Input Fields Are Distinct
body: <p>I have a form with a dozen email input fields and each email needs to be unique.  What is the most elegant way via jquery to perform the comparison among all the fields without manually writing all the comparisons like below:</p>
  
  <pre><code>if($("#email1").val() == $("#email2").val() || ....)  {
      isValid = false;
      alert("emails must be unique.");
  }
  </code></pre>
  
  <p>Thanks in advance!</p>