Guest User

Untitled

a guest
Dec 7th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Val Exercise</title>
  5. </head>
  6. <body>
  7. <button id="magic">Click Here</button><br>
  8.  
  9. <!--
  10. 1. Add a click handler to the button
  11. 2. When you click the button, the text from the input boxes should appear in the box with the same color (after you write the JavaScript, make sure to add some text in the input boxes)
  12.  
  13. HINT: You only need ONE click handler (not three!)
  14. -->
  15.  
  16. <div class="input-label">Red:</div>
  17. <input id="red" placeholder="Red"><br>
  18.  
  19. <div class="input-label">Yellow:</div>
  20. <input class="yellow" placeholder="Yellow"><br>
  21.  
  22. <div class="input-label">Green:</div>
  23. <input id="green" placeholder="Green"><br>
  24.  
  25. <!-- red -->
  26. <div class="one three four five"></div>
  27.  
  28. <!-- yellow -->
  29. <div id="thing"></div>
  30.  
  31. <!-- green -->
  32. <div class="one two three four"></div>
  33.  
  34. </body>
  35. </html>
Add Comment
Please, Sign In to add comment