대학생 신분으로 참가하는 마지막 대회이다 보니 좋은 결과를 얻고 싶어 노력 중. (기획이 개발보다 어렵다...)
JS랑 친해지기 위해 노력 중(어렵다 이녀석..)
// Function to change the content of t2
function modifyText() {
var t2 = document.getElementById("t2");
if (t2.firstChild.nodeValue == "three") {
t2.firstChild.nodeValue = "two";
} else {
t2.firstChild.nodeValue = "three";
}
}
// add event listener to table
var el = document.getElementById("outside");
el.addEventListener("click", modifyText, false);