Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Commit

Permalink
Fixed typo in readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Lawrence committed Mar 21, 2012
1 parent c1bb437 commit 5fdfa85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -108,7 +108,7 @@ declarative.mappings.add({
prefix: 'data-widget-',
types: ['counter']
callback: function(counter, type, options) {
var input = document.querySelector(options.target);
var input = document.getElementById(options.target);
var maxlength = input.getAttribute('maxlength');
countCharacters(input, counter, maxlength);
}
Expand Down

0 comments on commit 5fdfa85

Please sign in to comment.