/jquery-default-button

A jQuery plugin to allow setting a default element that is sent the click event when the enter key is pushed inside of an element.

MIT LicenseMIT

jquery-default-button

A jQuery plugin to easily define a default button.

Installation

You can download the /dist/jquery-default-button.min.js file into your project. You can also use npm to install it that way:

npm install jquery-default-button

Usage

See the /examples directory for an example of how to use the plugin. Note that in a normal project you will need to expose the /dist/jquery-default-button.min.js file in some way.

Version History

v2.0.0 - 8/10/2022

  • Modernized for latest jQuery.

v1.2.0 - 12/18/2011

  • Initial version posted to GitHub.