What's happening in this JQuery code?
<p>Sorry for this very basic JQuery question. I created 'mytest' jquery function like this:</p>

<pre><code>jQuery.fn.mytest = function () {
    alert($(this).attr('id'))
}
</code></pre>

<p>Now if I call it like this everything is perfect:</p>

<pre><code>$("#someid").mytest();
</code></pre>

<p>It alerts "someid". But if I do something like this:</p>

<pre><code>$("#someid, #anotherid, #moreids").mytest();
</code></pre>

<p>this function only alerts "someid". Of course "anotherid" and "moreids" exist.</p>

<p>Why mytest() is not working and what is the right code for this function?</p>
