Use an array to search element for data-attribute and hide it
<p>I want to search through a class for elements that have data-id attribute that matches in the array, and hide them.</p>

<p>The HTML:</p>

<pre><code>&lt;li class="list" data-id="1"&gt;one&lt;/li&gt;
&lt;li class="list" data-id="2"&gt;two&lt;/li&gt;
&lt;li class="list" data-id="3"&gt;three&lt;/li&gt;
&lt;li class="list" data-id="4"&gt;four&lt;/li&gt;
</code></pre>

<p>I have an array: 
<code>var dataIDcheck = ['1', '3']</code></p>

<p>Any ideas on how I can search through the class .list and hide 1 and 3 (or whatever is in the array)?</p>
