SHARE
TWEET

Untitled

a guest Nov 19th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3.  
  4. <script>
  5.     let colors = ["green", "blue", "red", "orange", "purple", "white", "gray", "brown", "black", "magenta"];
  6.  
  7. function remove(idx) {
  8.     console.log("remove(" + idx + ")");
  9.  
  10. }
  11.  
  12. </script>
  13. <head>
  14.    
  15.     <body>
  16. <ul>
  17. <li id="0">green<button onClick="remove(0);">-</button></li>
  18. <li id="1">blue<button onClick="remove(1);">-</button></li>
  19. <li id="2">red<button onClick="remove(2);">-</button></li>
  20. </ul>
  21. </body>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top