How do I write a jQuery selector to match two elements whose ids start with the same string
<p>I have 2 loader images, with element ids loader1 and loader2. I bind to the first one with:</p>

<pre><code>$('#loader1')
    .hide()  // hide it initially
    .ajaxStart(function() {
        $(this).show();
    })
    .ajaxStop(function() {
        $(this).hide();
    })
;
</code></pre>

<p>How can I bind the same code to loader2 without repeating the whole thing?</p>
