General discussion

  • Creator
    Topic
  • #2190120

    adding cell in rows using javascript

    Locked

    by hussainfarzana ·

    hi,using HTML design i’ve developed a table with 3rows and 4 columns.now the problem is when specifying the particular row,a cell should be included and the value should be incremented dynamically.i’ve developed code but it’s static.if anybody knows help me out immediately.

All Comments

  • Author
    Replies
    • #3070786

      Reply To: adding cell in rows using javascript

      by master3bs ·

      In reply to adding cell in rows using javascript

      This or a variation of this might work:

      var tr = document.all[tableID].insertCell();
      tr.onClick = “fnTRClicked()”;
      // If you copy this code and put in a new HTML file and click on the
      table row the onClick event will be fired.

      textarea1.value = document.all[‘fs2’].innerHTML

Viewing 0 reply threads