Skip to content

astorije/inputhistory

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo

A GitHub-hosted demo can be found here:
View project page

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.

About

Keep a history of previously entered input values

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 37.9%
  • CSS 32.8%
  • JavaScript 29.3%