title: How to animate a jquery function passed by parameter?
body: <p>I am trying to develop a simple function in jquery that can animates o rotates an element. My current code is this:</p>
  
  <pre><code>&lt;button id="bt_Employment2" name="bt_Employment2" onclick="rotate('bt_Employment2')"&gt;
  
  function rotate(elem)
  {
      elem.rotate({animateTo:180});     
  }
  </code></pre>
  
  <p>Could you help me please?</p>