Adding HTML code into div using javascript

cojeemosteh

New Member
I have a div:\[code\]<div id="bottom"></div> \[/code\]And now I would like to create table there, where will be placed things from Js array.I tried this:\[code\]document.getElementById('bottom').innerHTML("Text");\[/code\]But it doesn't work :/ \[quote\] Uncaught TypeError: Property 'innerHTML' of object # is not a function \[/quote\]
 
Back
Top