Skip to content

TBeijen/jQuery-plugin-autofocusBackspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published