jquery-keypress-log
Simple plugin to store input history. The plugin keeps track of keystrokes through events 'keypress'. The log is written only character values (except for control keys).
Getting Started
Download the production version or the development version.
In your web page:
<script src="jquery.js"></script> <script src="dist/jquery.keypress-log.min.js"></script> <script> jQuery(function ($) { $('inputSelector').keyPressLog(); // replace 'inputSelector' to what you need }); </script>
Get log data:
var inputLog = $('inputSelector').data('keyPressLog').get();
Subscribe to log event:
$("inputSelector").on('logChanged.keyPressLog', function (e, data) { console.log(data.log); // write current log data to console });
Contributing
License
MIT © xtratio