Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function changeColor() {
  2. var check = document.getElementById('checkBox').checked;
  3. function colorChange() {
  4. if (value = red) {
  5. check.parentNode.style.background = "red";
  6. }
  7. if (value = yellow) {
  8. check.parentNode.style.background = "yellow";
  9. }
  10. if (value = green) {
  11. check.parentNode.style.background = "green";
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement