jQuery - variable strings in function
<p>My html contains many lines like that:</p>

<pre><code>&lt;a href="#" id="car_small"&gt;Car 1&lt;/a&gt;
&lt;a href="#" id="car_big"&gt;Car 2&lt;/a&gt;
&lt;a href="#" id="wheels_small"&gt;Wheels 1&lt;/a&gt;
&lt;a href="#" id="wheels_big"&gt;Wheels 2&lt;/a&gt;
</code></pre>

<p>I would like my script works in that way:</p>

<p>If ID=VARIABLE+'_small' clicked then SlideUp ID=VARIABLE+'_big'</p>

<p>How to do that?</p>

<p>P.S. Also I have created jQuery script:</p>

<pre><code> $('a').click(function() {

 if($(this).attr('id') == 'car_small'){
  $('#car_big').slideUp('fast', function() { });  }

 });
</code></pre>

<p>And this is working in way I would like, but I need copy and paste this code for every link.</p>
