title: .each() after a .clone() for validation function
body: <p>I am using jquery validation but there is no option to check for error type's.</p>
  
  <p>Because of that I am trying to build my own validation function but I am struggling to get the each function to work after I cloned a row.</p>
  
  <p>It always returns with the same data of the first selection box.</p>
  
  <p>I have made a jsfidlle for more detail on the problem : <a href="https://jsfiddle.net/notify/b22dctdo/" rel="nofollow">https://jsfiddle.net/notify/b22dctdo/</a></p>
  
  <p>What I want to achieve is that if there is a duplicate value on the select-boxes that I generate a div with an error message.</p>
  
  <p>Maybe I am looking in the wrong direction but hope someone can point me in the correct direction.
  I want to use the function inputsHaveDuplicateValues what i have found and have made a test function that returns the data-index number for better view.</p>
  
  <pre><code>function inputsHaveDuplicateValues() {
    var hasDuplicates = false;
    $('li.selected').each(function() {
      var $inputsWithSameValue = $(this).data("original-index");
      hasDuplicates = $inputsWithSameValue.length &gt; 1;
      //This will break out of the each loop if duplicates have been found.
      return hasDuplicates;
    });
    return hasDuplicates;
  };
  </code></pre>
  
  <p>Many thanks in Advance for looking into this.</p>