I want then to fill in a date in the inputfield "datum" and that date have to replace the content of the div "test1". Can anyone help me out :P? I'm struggling on this for a while now haha. This is my code :
<form>
Datum: <input type="text" id="datum">
</form>
<script>
var MyDiv1 = Document.getElementById('datum');
document.getElementById("www").onclick = function() {
document.getElementById("test1").innerHTML = 'MyDiv1';
};
</script>
<div id='test1'>This is a dummy text</div>
<a id="www" >Replace it!</a>
documentnotDocumentat linevar MyDiv1 = Document.getElementById('datum');