title: jQuery passing variabile to .css({})
body: <p>I have the following function:</p>
  
  <pre><code>$("#myId").css({left: leftVal+"px", top:topVal+"px"});
  </code></pre>
  
  <p>this works.</p>
  
  <p>I am looking for a way to add <code>left: leftVal+"px", top:topVal+"px"</code> as a variable and make my function: </p>
  
  <pre><code>$("#myId").css({myCSSstuff});
  </code></pre>
  
  <p>I've tryed </p>
  
  <pre><code>var myCSSstuff= "left: "+leftVal+"px, top:"+topVal+"px"
  </code></pre>
  
  <p>but it does not work.
  Is there a way to do this?
  Thanx. </p>