Change width of element with mouseover jquery
<p>I am trying to create a thin line under a nav bar to follow the mouse but am having trouble getting e.page:X to set the width of the element.</p>

<p>Here is what I have:</p>

<pre><code>$('#test').mousemove(function(){
var linewidth = e.pageX;
$("#line").width($linewidth);
                              })
})
</code></pre>

<p>Can anyone tell me why this is not setting the width of #line</p>
