element#selectionStart で選択開始位置 element#selectionEnd で選択終端位置 を取得、設定できる。 たとえば、キャレットを3文字目の位置に移動させたいのであれば var element = document.getElementById("input_type_text"); with(element) { selectionStart = selectionEnd = 3; } とすればよい。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く