styleプロパティ
getter onlyのプロパティみたいなので
document.getElementById("hoge").style = "display:block";
みたいなことはできない。
document.getElementById("hoge").setAttribute("style", "display:block");
のようにsetAttributeを使うとよさげ
getter onlyのプロパティみたいなので
document.getElementById("hoge").style = "display:block";
みたいなことはできない。
document.getElementById("hoge").setAttribute("style", "display:block");
のようにsetAttributeを使うとよさげ