jquery inArray()
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8769022/how-to-check-if-jquery-object-exist-in-array">How to check if jQuery object exist in array?</a>  </p>
</blockquote>



<p>is there any way to determine if a dom element is in an array of dom elements?</p>

<p>i.e.</p>

<pre><code>$(".container img").each(function(){
   views.push($(this).clone());
});
</code></pre>

<p>creates an array of cloned image elements. I now want to check if a new image element is in that array?</p>

<p>Thanks</p>
