Use Javascript variable in element's style property
<pre><code>function move(direction, el) {
    el.style.direction = (el.style.direction+10)+'px';
}
</code></pre>

<p>I have this very simple function that moves an element by 10 pixels in a specified direction. Now it errors if i use this, I'm thinking I can't use direction as a variable in this situation. Is this right?</p>
