This library is an extension for jQuery which allows focusing on editable elements either at the beginning or ending.
- Textarea, input and contenteditable support.
- Put cursor at the ending using
focusEnd
method. - Put cursor at the beginning using
focusBegin
method.
- jquery.js (>= 2.1.0)
$("textarea, input[type='text'], [contenteditable]").focusBegin();
$("textarea, input[type='text'], [contenteditable]").focusEnd();
Copyright (c) 2012-2014 Mateus Maso. Released under an MIT license.