assign multiple ids to an event
<p>I have a form where I've got multiple text inputs for various timefields, each with a unique ID set for some other code that I'm using. I'm also trying to use a time entry script that has a simple single line bit of code to implement, but as I have 28 different fields all with different IDs, this is going to get repetitve fast. Is there a way to reference in the jquery code to reference the same function across multiple IDs without duplicating the typing?</p>

<p>example:</p>

<p>html</p>

<pre><code>&lt;input id="M_start_time1" /&gt;
&lt;input id="M_end_time1" /&gt;
&lt;input id="M_start_time2" /&gt;
&lt;input id="M_end_time2" /&gt;
</code></pre>

<p>jquery</p>

<pre><code>$('#M_start_time1').timeEntry({
    ampmPrefix: ' ',
});
$('#M_end_time1').timeEntry({
    ampmPrefix: ' ',
});
$('#M_start_time2').timeEntry({
    ampmPrefix: ' ',
});
$('#M_end_time2').timeEntry({
    ampmPrefix: ' ',
});
</code></pre>

<p>Any suggestions are greatly appreciated! :)</p>
