needs a data-counter

button doesn't work without it
This commit is contained in:
Leigh Lawhon 2017-07-13 06:53:37 -04:00 committed by GitHub
parent a7b5f374db
commit 12054163fb

View file

@ -186,7 +186,7 @@ For instance, here the attribute `data-counter` adds a behavior: "increase on cl
```html run autorun height=60 ```html run autorun height=60
Counter: <input type="button" value="1" data-counter> Counter: <input type="button" value="1" data-counter>
One more counter: <input type="button" value="2"> One more counter: <input type="button" value="2" data-counter>
<script> <script>
document.addEventListener('click', function(event) { document.addEventListener('click', function(event) {