Upon page load I want to move the cursor to a particular field. No problem. But I also need to select and highlight the default value that is placed in that text field.
From http://www.codeave.com/javascript/code.asp?u_log=7004:
var input = document.getElementById('myTextInput'); input.focus(); input.select();
<input id="myTextInput" value="Hello world!" />
1.4m articles
1.4m replys
5 comments
57.0k users