title: Passing a Variable To A Jquery Function
body: <p>I have a list of items that I'd like to perform the same action on. They all have separate IDs so I want to be able to pass the name of each one to Jquery so that the action is only performed on that ID.
  For example:</p>
  
  <pre><code>&lt;a href="#" id="1"&gt;one&lt;/a&gt;
  &lt;a href="#" id="2"&gt;two&lt;/a&gt;
  &lt;div id="#test1"&gt;&lt;/div&gt;
  &lt;div id="#test2"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I want to be able to do something like this:</p>
  
  <pre><code>function doSomething(x) {
       var div=x+'div';
       $(x).click(function() { $.(div).slideDown(); });
  }
  </code></pre>
  
  <p>Any thoughts?</p>
  
  <p>Thanks.</p>