Here is some javascript code that I am working with:
function createDiv(id){
var temp = document.createElement('div');
temp.setAttribute("id", id);
document.getElementsByTagName('body')[0].appendChild(temp);
}
createDiv('upper_outer');
function /*ABSTRACTION*/(e)
{
/* Some part of the function is functioning correctly */
var upper = document.getElementById("upper_outer");
upper.style.display = "block";
upper.style.position = "absolute";
upper.style.height = $(document).height() - init_co[0] + "px";
upper.style.width = s_box.style.width + "px";
upper.style.left = init_co[0] + "px";
upper.style.top = init_co[1] + "px";
}
I have confirmed through the dev console that the div has been successfully created with the correct id. However, there are no changes happening to the style attribute as expected. Any suggestions on what might be causing this issue? (Please disregard the variables not shown in this code, they are implemented correctly).
EDIT:
The function is being called and a portion of it is indeed working.