Using Jquery, call function on selection just once
<p>Say i have a selection of textboxes like this;</p>

<pre><code>var arrayoftextboxes = $('.textbox1, .textbox2, .textbox3');
</code></pre>

<p>Is there a way I can call a function on each one in a simpler way than this?
It only needs to be called once.</p>

<pre><code>arrayoftextboxes.each(function(i){foo(arrayoftextboxes[i]);});
</code></pre>

<p>I tried </p>

<pre><code>arrayoftextboxes.load(function(){foo(this)});
</code></pre>

<p>and </p>

<pre><code>arrayoftextboxes.bind(function(){foo(this)});
</code></pre>

<p>but the functions dont seem to be called.</p>
