Skip to content

Commit

Permalink
Optimize script (#36087)
Browse files Browse the repository at this point in the history
  • Loading branch information
EzioMercer authored Sep 28, 2024
1 parent a5e089d commit 3b080cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/en-us/web/css/list-style-type/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,9 @@ input {

```js
const container = document.querySelector(".container");
const list = document.querySelector("ol");

container.addEventListener("change", (event) => {
const list = document.querySelector("ol");
list.setAttribute("style", `list-style-type: ${event.target.value}`);
});
```
Expand Down

0 comments on commit 3b080cf

Please sign in to comment.