I have this bit of code that is supposed to output test and then basically do stuff to a div tag. There is some sort of syntax error in it though that outputs" Uncaught SyntaxError: Unexpected identifier" code:
<script type="text/javascript">
console.log("test");
document.getElementById("file").onchange = function(){
var div = getElementById("imageContainer");
for each(var image in document.getElementById("file").files){
div.appendChild("<img src=" + image + "/>");
}
};
</script>