rendered paste body<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>Boutons</title><script>function addFormLine(){ //alert("I'm in"); var frm_tableau = document.getElementById("formContainer" ); //var ligne = document.createElement("tr"); var ligne = frm_tableau.insertRow(-1); ligne.setAttribute("id","tol_row"); /*var cellule1 = document.createElement("td" ); var cellule2 = document.createElement("td" );*/ var cellule1 = ligne.insertCell(-1); var cellule2 = ligne.insertCell(-1); var texte1 = document.createTextNode("Boutons" ); var s_tol1 = document.createTextNode('Bouton1'); var e_tol1 = document.createElement('input'); e_tol1.type = 'radio'; e_tol1.id = 'tol1'; e_tol1.name = 'tol'; /*e_tol1.checked = true;*/ e_tol1.value = 'b1'; var s_tol2 = document.createTextNode('Bouton2'); var e_tol2 = document.createElement('input'); e_tol2.type = 'radio'; e_tol2.id = 'tol2'; e_tol2.name = 'tol'; e_tol2.value = 'b2'; cellule1.appendChild(texte1); cellule2.appendChild(s_tol1); cellule2.appendChild(e_tol1); cellule2.appendChild(s_tol2); cellule2.appendChild(e_tol2); /* ligne.appendChild(cellule1); ligne.appendChild(cellule2); */ //frm_tableau.appendChild(ligne);}</script></head><body><table id="formContainer" border="1"><tr><td>line</td><td>line</td></tr></table><a href="#" onclick="javascript:addFormLine();">Add</a></body></html>