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
- 부모창
- Eclipse
- SVN
- ubuntu
- docker
- php
- TPL
- 천단위
- yum
- Python
- replace
- Selectbox
- Postfix
- centos
- TextBox
- 문자열자르기
- 한글 깨짐
- random
- smarty
- jQuery
- MySQL
- Oracle
- JavaScript
- RabbitMQ
- 확장자
- install
- mariadb
- 일괄변경
- i18n
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
반응형