Inserting a Div Into another Div?
问题 Im creating a web app and would like to know why the following code is not working. It first creates a element which is then added to the body. I then create another Div element which i would like to place inside the first div element that i created. Im using MooTools classes to create and initialize objects and it works fine but i just cant seem to get the following code to work. The code is inside an initialize: function() of a class: this.mainAppDiv = document.createElement("div"); this