Skip to content
No description or website provided.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
public
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.