Hi,
I am trying to figure out if there is a way to use javascript to write into an existing div. I am building a set of divs based off of a length of elements in an xml document.
So it would be kind of like this;
<body>
<div class="shell" id="shell_div"></div>
<script type="text/javascript">
//
var myXMLnumber = myXMLelements.length;
//
for(i=0;i<myXMLnumber;i++){
//
//---ok here is where I need some help---
//---how can I do a document write to an existing div?---
//---I would have thought it should look like this;---
//
document.getElementById("sales_main").write('<div>');
}
</script>
</body>
Any advice appreciated!