Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 public
Octocat-spinner-32 README.markdown
README.markdown

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.
Something went wrong with that request. Please try again.