| | |
Problem in naming the cloned rows
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2007
Posts: 6
Reputation:
Solved Threads: 0
Hi friends,
I am java programmer .I am doing one simple job in javascript.i totally struck with this code for last two days..
Pleas help me to sort out.
My problem is i cloned row in the table each row contains two select button and three text box.I want to change the names of the select and input boxes.
please help me
priya
I am java programmer .I am doing one simple job in javascript.i totally struck with this code for last two days..
Pleas help me to sort out.
My problem is i cloned row in the table each row contains two select button and three text box.I want to change the names of the select and input boxes.
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
var counter = 0; var rowNum =0; function addRowToTable() { counter++; tabBody = document.getElementById('tblSample').firstChild; newRow = tabBody.appendChild(tabBody.firstChild.nextSibling.cloneNode(true)); rowNum = rowNum + 1; for (i = 0; i < newRow.cells.length; i++) newRow.cells[i].name = theName + counter; }
please help me
priya
![]() |
Similar Threads
- filestream && multidimensional arrays (C++)
- Event Handler in dynamic table rows (JavaScript / DHTML / AJAX)
- Double MySQL Query (PHP)
- Datagrid - no value at index ### error when scroll and sort (VB.NET)
- if conditional question in excel (Windows Software)
- Get All Rows In Column In A Where Statment (MS SQL)
- Dynamic Array, Writing to CSV, Floating Point ?'s (C)
- FULLTEXT searching (MySQL)
- Saving and opeing a JTable (Java)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: preloading images
- Next Thread: Giving error message while exceeding fixed height textarea
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child class close column createrange() css cursor date debugger dependent disablefirebug dom download dropdown editor element embed engine error events explorer ext file form forms getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe images internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl math media microsoft mimic object onmouseoutdivproblem onreadystatechange parent paypal pdf php player position post problem programming progressbar regex runtime scroll search security select shopping size software sql text textarea unicode w3c web website window windowofwords windowsxp wysiwyg \n





