chaining methods and selectors using jquery inside of a loop
<p>Is it possible to generate a chain of selectors and methods inside of a loop?</p>

<p>For example, I have an array of elements:</p>

<pre><code>array[0] = '.type1value1, .type1value2, .type1value3';
array[1] = '.type2value1, .type2value2, .type2value3';
array[2] = '.type3value1, .type3value2, .type3value3';
</code></pre>

<p>I somehow need to build a chain of methods using the array elements as selectors (by looping or any other possible means!) so that I would end up with the following:-</p>

<pre><code>$('.type1value1, .type1value2, .type1value3').filter('.type2value1, .type2.value2, .type2value3').filter('.type3value1, .type3value2, .type3value3');
</code></pre>
