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 | + | document.getElementById("content_text").innerHTML="<table>"; |
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("content_text").innerHTML=document.getElementById("content_text").innerHTML+"<tr><td>"+chem_name[i]+"</td><td>"+chem_value[i]+"</td></tr>"; | ||
+ | console.log(document.getElementById("content_text").innerHTML); | ||
i++; | i++; | ||
} | } | ||
- | document.getElementById("content_text").innerHTML+=" | + | document.getElementById("content_text").innerHTML+="</table>"; |
}); | }); |
Revision as of 00:19, 29 September 2011