title: jQuery Better Way to call function on multiple elements?
body: <p>I'm wondering if there is a better way to handle multiple function calls. Basically I have a function which receives and element as one of the arguments, along with some properties. I have to call this function on several elements...</p>
  
  <pre><code>function positionMe(element,position){ ... }
  
  positionMe(obj1,top);
  positionMe(obj2,left);
  positionMe(obj3,bottom);
  positionMe(obj4,right);
  positionMe(obj5,bottom);
  </code></pre>
  
  <p>Just looking at the code seems like I'm doing something really wrong. At first I thought I might be able to pass a collection of elements in, but it doesn't seem to work. Any ideas?</p>