| | |
prOblem wIth DynAmiC aDDition Of Rows !!
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
i am using this function to add rows dynamically
when i try to use these :
it stops working...
can some one guide me..
i really need to add styles etc to the rows added
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
function addRow() { var tbl = document.getElementById('applications'); var lastRow = tbl.rows.length; // if there's no header row in the table, then iteration = lastRow + 1 var iteration = lastRow; var row = tbl.insertRow(lastRow); // left cell var cellLeft = row.insertCell(0); var el = document.createElement('input'); el.type = 'text'; el.name = 'txtRow' + iteration; el.id = 'txtRow' + iteration; el.size = 45; //e1.style.color='blue' // e1.className="cellData"; //e1.style.width="220px"; //e1.maxlength=20; //alert("hi") //e1.style.height=17px; cellLeft.appendChild(el); }
when i try to use these :
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
//e1.style.color='blue' // e1.className="cellData"; //e1.style.width="220px"; //e1.maxlength=20; //e1.style.height=17px;
it stops working...
can some one guide me..
i really need to add styles etc to the rows added
rEaLITy iS aN iLLUSIOn cAUSED bY lACk oF aLCOHOL....
![]() |
Similar Threads
- looking for detailed version of traveling salesman problem (C++)
- A problem with dynamic allocation..help please (C++)
- dynamic programming problem (Computer Science)
- Create HTML Table with Dynamic Rows (PHP)
- Event Handler in dynamic table rows (JavaScript / DHTML / AJAX)
- Help with Dynamic Checkbox (PHP)
- Dynamic Array, Writing to CSV, Floating Point ?'s (C)
- ASP.NET / C# Dynamic Control (ASP.NET)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: How to access the dynamic value of href links from Javascript
- Next Thread: create dynamic fields
| Thread Tools | Search this Thread |
acid2 ajax ajaxexample ajaxjspservlets array browser bug captchaformproblem cart checkbox child class close codes createrange() css cursor date debugger decimal dependent design disablefirebug dom dropdown editor element embed engine enter error events explorer ext file firefox focus form forms frameworks getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe images index internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl listbox maps masterpage math media menu mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php position post problem programming progressbar prototype redirect runtime safari scale scriptlets scroll search security shopping size software toggle unicode w3c web wysiwyg \n






