I have this div:
<div id="test">
</div>
How can I write something inside this div, for example:
<div id="test">
write something here
</div>
Any help will be great appreciated.
Write text inside a div with a given ID
Moderator: General Moderators
-
klevis miho
- Forum Contributor
- Posts: 413
- Joined: Wed Oct 29, 2008 2:59 pm
- Location: Albania
- Contact:
Re: Write text inside a div with a given ID
Code: Select all
document.getElementById("test").innerHTML = "write something here";-
klevis miho
- Forum Contributor
- Posts: 413
- Joined: Wed Oct 29, 2008 2:59 pm
- Location: Albania
- Contact: