Newer
Older
2025-makoto / dom2.js
@Oi Makoto Oi Makoto on 20 Jun 285 bytes id の変更
function red() {
  document.getElementById("check2").style.backgroundColor = white;
  document.getElementById("check2").style.color = red;
}

function yello() {
  document.getElementById("check1").style.backgroundColor = white;
  document.getElementById("check1").style.color = red;
}