jquery.focus

jQuery plugin for focusing textarea, input and contenteditable

MIT License

Downloads
7
Stars
5
Committers
2

jquery.focus Build Status

This library is an extension for jQuery which allows focusing on editable elements either at the beginning or ending.

Features

  • Textarea, input and contenteditable support.
  • Put cursor at the ending using focusEnd method.
  • Put cursor at the beginning using focusBegin method.

Dependencies

  • jquery.js (>= 2.1.0)

Examples

$("textarea, input[type='text'], [contenteditable]").focusBegin();
$("textarea, input[type='text'], [contenteditable]").focusEnd();

License

Copyright (c) 2012-2014 Mateus Maso. Released under an MIT license.

Package Rankings
Top 17.22% on Bower.io
Top 16.38% on Npmjs.org
Badges
Extracted from project README
Build Status