jQuery > Targeting dynamically created select
<p>I have a form that has 8 dropdown boxes that are filled with database entries (or blank if none present).  </p>

<p>For example:</p>

<pre><code>&lt;select name='admin_id[]' id='admin_select1st' class='listbox medium'&gt;
&lt;select name='admin_id[]' id='admin_select2nd' class='listbox medium'&gt;
</code></pre>

<p>and so on through 8 entries.</p>

<p>What I'm trying to do (eventually) is when one of these select boxes gets changed it will use jQuery post and update a text input field.  </p>

<p>What's happening right now is that when I use the following jQuery I get an alert for each one of the select boxes (instead of just the one that I changed):</p>

<pre><code>&lt;script type='text/javascript'&gt;
$("[id^=admin_select]").change(function() {
 alert('Handler for .change() called.');
});
&lt;/script&gt;
</code></pre>

<p>Right now this is expected behaviour since I'm telling it to match any ID that starts with admin_select.  What I need to know is, is there a way I can use this code once and not have to write it out for each admin_select1st, admin_select2nd, admin_select3rd, etc, repeating my code 8 times?</p>
