Hi,
Sorry if a similar topic has already been discussed on this forum; lets say i am being lazy to search the forum ?.
Items Involved:
1. HTML Page
2. External CSS file
In an html page, i need to do dynamically append a div tag with an id (css) inside another div tag (which is hard coded in html) using javascript.
the external css looks like this:
#course_row{
height:66px;
background-color:#F9F9F9;
margin-top:1px;
}
[code=html]<!– this is the hard coded div –>
<div id=”course_list”>
<!– i want to append the div dynamically here –>
<script language=”javascript” type=”text/javascript”>
var divElement = document.getElementById(“course_row”);
document.appentChild(“course_row”);
</script>
</div>
I am sure my code is way off. I want to be able to add N Number of rows using the for loop.
I am new to HTML and Javascript, but i have a very good understanding of OOP and Action Script.
Any help would be appreciated.
Thanks