Durga Velusamy

Durga Velusamy

  • NA
  • 318
  • 114k

how add 2 radio button within sigle cell of table for gender

Jul 9 2015 5:13 AM
function AddRow(TableId,result)
{
var table=document.getElementById(TableId);
var rowCount=table.rows.length;
var row=table.insertRow(rowCount);
how add 2 radio button withis my table th is Gender
here i need to add 2 label for male and female .
 
var cell8=row.insertCell(7);
var element7=document.createElement("input");
element7.type="radio";
element7.id="t7";
cell8.appendChild(element7);
}

Answers (3)