Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
added limit to currect value after refreshed
Browse files Browse the repository at this point in the history
  • Loading branch information
webloper committed Jul 30, 2014
1 parent dee8e97 commit 22d238e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jquery-counter.0.1.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

el.innerHTML = localStorage.getItem( id );

$el.next().text( maxLen - el.innerHTML.length );

$el.bind('keydown keyup', function(event){

var curVal = this.innerHTML;
Expand Down

0 comments on commit 22d238e

Please sign in to comment.