Issue moving input to the right on right arrow key with jquery
<p>I have this code :</p>

<pre><code>jQuery.fn.enterText = function(e){
var $cursor = $("#cursor");

if (e.keyCode == 39){
    e.preventDefault();
    $cursor.val("");
var nextChar =  $cursor.next();
    $cursor.after(nextChar);
}

};
</code></pre>

<p>Im trying to move the #cursor to the right but it seems the browser does not allow it....the left arrow key works :</p>

<pre><code>if (e.keyCode == 37){
    $cursor.val("");
var previousChar =  $cursor.prev();
    $cursor.after(previousChar);

}
</code></pre>
