Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 문자열자르기
- random
- Eclipse
- Oracle
- Python
- 확장자
- TextBox
- mariadb
- MySQL
- Postfix
- 일괄변경
- replace
- centos
- Selectbox
- 부모창
- php
- docker
- jQuery
- RabbitMQ
- JavaScript
- TPL
- 한글 깨짐
- ubuntu
- smarty
- install
- 천단위
- yum
- i18n
- SVN
Archives
- Today
- Total
wilson's story
javascript row 추가 본문
반응형
/* 빈칸추가 */ function jsBlankAdd(){ var bcpHead = document.getElementById("bcpHead"); // 추가될곳 var bcpHeadRows = bcpHead.rows; var bcpHeadRowsLen = bcpHeadRows.length; var bcpHeadRow = bcpHeadRows[bcpHeadRowsLen - 1]; var bcpHeadCell = bcpHeadRow.cells; var bcpHeadCellLen = bcpHeadCell.length; var bcpHeadInsertRow = bcpHead.insertRow(); var regExp = /value=(.*?)/gi; for (var ii = 0; ii < bcpHeadCellLen; ii++) { bcpHeadInsertRowCell = bcpHeadInsertRow.insertCell(); bcpHeadCellHtml = bcpHeadCell(ii).innerHTML;//window.alert(bcpHeadCellHtml); bcpHeadCellHtml = bcpHeadCellHtml.replace(regExp, "");//window.alert(bcpHeadCellHtml); bcpHeadInsertRowCell.innerHTML = bcpHeadCellHtml; } } 1 2 3 4
반응형