🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

An useful jQuery plugin to enhance the input field that shows you the last input values that has been recently entered.

input

Documentation

Install

Manual install:

  1. Download inputhistory.js
  2. Include source: <script src="inputhistory.js"></script>

Usage

To enable history on your inputs:

$(".input").inputhistory();

Prevent form submit

Normally, if your input is inside a form, it will trigger submit when pressing <enter>. If you don't want this behaviour you can turn it off with this option:

$(".input").inputhistory({preventSubmit: true});

Requirements

inputhistory is a jQuery plugin and requires jQuery 1.8 or higher.

License

Available under the MIT license.


You May Also Like