반응형
var innerText = document.getElementById(elementId).innerText;
td같은태그는 value로 못 가져와서 innerText로 가져와야한다!
반응형
'개발 > html + javascript' 카테고리의 다른 글
| [javascript] nextElementSibling (0) | 2019.12.11 |
|---|---|
| [javascript] create button and add function (0) | 2019.12.08 |
| [javascript] <input type ="file">을 innerHTML로 하면 발생하는 문제점 (0) | 2019.12.07 |
| [html + javascript] onclick ="write()"가 동작이 안될 때!! (1) | 2019.12.03 |
| [javascript] editable select (0) | 2019.06.15 |
댓글