needs a data-counter
button doesn't work without it
This commit is contained in:
parent
a7b5f374db
commit
12054163fb
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue