IT노트(구)/JavaScript
자바스크립트로 text-decoration 속성 부여하는 방법
스프링연구소
2015. 12. 28. 06:54
자바스크립트로 text-decoration 속성을 부여하려면
다음과 같이 처리하면 된다!(style.text-decoration이라고 접근했다가 막힌 경험이 있었다!)
document.getElementById("foo").style.textDecoration = "underline";