check dynamic array against static array
<p>I need some javascript/jquery for this. I have two arrays, one static array that is hard coded and another dynamic array that is user driven. For example the values in each array represent a div. Each div is represented in the static array. I want to be able to show only the divs that are present in the dynamic array. So if the dynamic array changes, it shows the divs present in the dynamic array and hides the divs not present. I also want to be able to run a function connected to each div, ie box1 has a function that needs called if it is displayed.</p>

<pre><code>var static_list = new Array("box1","box2","box3");
var dynamic_list = new Array("box1","box3");
</code></pre>
