javascript table row

    [javascript] table row text 가져오기 (table td text ,tr text 데이터)

    html 에 생성한 테이블에서 javascript 를 사용해 텍스트 데이터를 가져와서 사용하고자 한다. 테이블의 row의 내용을 가져오기 위해 테이블 아이디를 가져오고 tr 태그를 이용한다. var rows = document.getElementById("urltbody").getElementsByTagName("tr"); console.log("rows > ",rows," , tr len >",rows.length); var get_input2 = $("#urltbody td"); $.each(get_input2, function (index, value){ console.log('index2 > ',index); console.log("value2 > ",value); console.log("valu..