$(function () {
$(window).load(function () {
$('#myInput').focus();
});
})
The above will focus <input type="text" id="myInput" />
, but how can I place the cursor at the end of a filled input?
This has been asked before but not solved. selectionStart was mentioned but seems to work for textareas only.