Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
var dom = document.getElementById("tblDom");
            var len = tblDom.rows.length;
            var iteration = len;
            var row = dom.insertRow(iteration);
            var cell1 = row.insertCell(0);
            var cell2 = row.insertCell(1);
            var cell3 = row.insertCell(2);
            var cell4 = row.insertCell(3);

            cell1.innerHTML = len + 1;

            var element1 = document.createElement('input');
            element1.type = 'text';
            element1.id = 'Text1' + iteration;
            element1.name = 'Text1' + iteration;
            cell1.appendChild(element1);
            
            var element2 = document.createElement('input');
            element2.type = 'text';
            element2.id = 'Text2' + iteration;
            element2.name = 'Text2' + iteration;
           
            cell2.appendChild(element2);
            var element3 = document.createElement('input');
            element3.type = 'text';
            element3.id = 'Text3' + iteration;
         
            element3.name = 'Text3' + iteration;
            cell3.appendChild(element3);
here i am creating dom object i need two text box addition operation
Posted
Comments
Legor 31-Aug-12 4:48am    
This is no question. Please improve.
Joan M 31-Aug-12 5:51am    
Come on satheeshxy! if you expect to receive any kind of answer you should prepare a question.
I've explained this to you several times. It is possible that english is not your first language, but this is not an excude for not explaining correctly which is your problem.
Your posts are systematically downvoted and sent to oblivion, you are not getting what you need so... don't you think changing your attitude would be a good idea?
Soon if you still follow that path you'll be expulsed from CP and you will not have the opportunity to get answers to your questions... Can't you see that?
enhzflep 31-Aug-12 6:55am    
Well said Joan. :thumbs-up: +5
Samer Aburabie 24-Sep-12 6:28am    
True Story :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900