Possible Duplicate:
jQuery Set Cursor Position in Text Area
When an input with text is focused, the cursor begins at the end of the text on the right side. How can I make the cursor locate at the left side on focus?
I've seen examples using "setCursor", but I get an error that setCursor is not defined.
<input type="text" class="myInput">
Tabbing into this should put my cursor at the left!
</input>
setCursor throws an error that it's undefined.
$(".myInput").focus(function(){
var node = $(this);
setCursor(node, 0);
});