Home > jQuery-plugin-autofocusBackspace

jQuery-plugin-autofocusBackspace

JQuery-plugin-autofocusBackspace is a project mainly written in JavaScript, it's free.

autofocusBackspace jQuery plugin

jQuery plugin that focuses the first of the matching elements while preserving the backspace functionality of navigating to the previous page.

Plugin mimics browser backspace behaviour until:

  • Actual text has been entered
  • The element that received autofocus loses it's focus

Usage

  • Include jQuery
  • Include jQuery.autofocusBackspace.js
  • Call plugin

Example:

   $('input').autofocusBackspace();

TODO:

  • If disabled, remove event handlers to prevent unneccessary code execution.
Previous:vim-colorschemes