Is it possible to combine functions for different selectors like this in jquery?
<p>Just another silly thought for jquery. Is it possible to do something like this in Jquery:</p>

<p>Instead of typing all three like this:</p>

<pre><code>$('#id1').click(function(){
$('#idanother1').animate({height:'100px'},450);
$('#id1').toggleClass('my-added-class');
});

$('#id2').click(function(){
$('#idanother2').animate({height:'100px'},450);
$('#id2').toggleClass('my-added-class');
});

$('#id3').click(function(){
$('#idanother3').animate({height:'100px'},450);
$('#id3').toggleClass('my-added-class');
});
</code></pre>

<p>I would like to be able to write it something like this:</p>

<pre><code>$('#id1' / '#id2' / '#id3').click(function(){
$('#anotherid1' / '#anotherid2' / '#anotherid3').animate({height:'100px'},450);
$('#id1' / '#id2' / '#id3').toggleClass('my-added-class');
});
</code></pre>

<p>And if I don’t want to add class to id2 I simply exclude it like this:</p>

<pre><code>$('#id1' / '' / '#id3').toggleClass('my-added-class');
</code></pre>
