Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript
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 30-Aug-12 23:37pm
Comments
Legor at 31-Aug-12 4:48am
   
This is no question. Please improve.
Joan Murt at 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 at 31-Aug-12 6:55am
   
Well said Joan. :thumbs-up: +5
Samer Abu Rabie at 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)

  Print Answers RSS
0 BillWoodruff 330
1 Mathew Soji 309
2 Maciej Los 295
3 DamithSL 225
4 Afzaal Ahmad Zeeshan 217
0 OriginalGriff 6,369
1 Sergey Alexandrovich Kryukov 5,973
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 4,025


Advertise | Privacy | Mobile
Web01 | 2.8.1411019.1 | Last Updated 31 Aug 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100