Team:IIT Madras/Notebook/digestion

From 2011.igem.org

(Difference between revisions)
Line 72: Line 72:
chem_value[4]=50;
chem_value[4]=50;
chem_value[5]=60;
chem_value[5]=60;
-
document.getElementById("content_text").innerHTML="<table><tr><td>Chemical Name</td><td>Concentration</td></tr>";
+
document.getElementById("content_text").innerHTML="<table id="test">";
var i=0;
var i=0;
while(i<6){
while(i<6){
-
document.getElementById("content_text").innerHTML=document.getElementById("content_text").innerHTML+"<tr><td>"+chem_name[i]+"</td><td>"+chem_value[i]+"</td></tr>";
+
document.getElementById("test").innerHTML=document.getElementById("test").innerHTML+"<tr><td>"+chem_name[i]+"</td><td>"+chem_value[i]+"</td></tr>";
-
console.log(document.getElementById("content_text").innerHTML);
+
console.log(document.getElementById("test").innerHTML);
i++;
i++;
}
}
-
//document.getElementById("content_text").innerHTML+="</table>";
+
 
});
});

Revision as of 00:26, 29 September 2011

bar iGEM 2011 - Home Page Indian Institute of Technology - Madras