Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script>
- let colors = ["green", "blue", "red", "orange", "purple", "white", "gray", "brown", "black", "magenta"];
- function remove(idx) {
- console.log("remove(" + idx + ")");
- }
- </script>
- <head>
- <body>
- <ul>
- <li id="0">green<button onClick="remove(0);">-</button></li>
- <li id="1">blue<button onClick="remove(1);">-</button></li>
- <li id="2">red<button onClick="remove(2);">-</button></li>
- </ul>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement