How do I select dynamic ids in this format?
<p>I'm trying to select dynamic ids when a user types something into the input fields. My app spits out the input fields in the following format:</p>

<pre><code>&lt;input id="student_1_first_name" /&gt;
&lt;input id="student_1_last_name" /&gt;

&lt;input id="student_2_first_name" /&gt;
&lt;input id="student_2_last_name" /&gt;

&lt;input id="student_3_first_name" /&gt;
&lt;input id="student_3_last_name" /&gt;

etc.
</code></pre>

<p>For example, I tried doing this to select the end of the id string:</p>

<pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(
  function (){
    $("input[id$=_first_name]").bind("keyup", run_some_function_here);
    run_some_function_here();
    $("input[id$=_last_name]").bind("keyup", run_some_function_here);
    run_some_function_here();
  }
);
&lt;/script&gt;
</code></pre>

<p>When I do that, Jquery can't seem to select the input ids, so the functions don't run. Do you have any ideas on how I can select the ids correctly?</p>
