Test Case Boilerplate

Fork this way...

HTML

<input id="inp" type="text" value="some words" />

JavaScript

$("#inp").bind('click',function(){
    this.selectionStart=0;
    this.selectionEnd=this.value.length
});