good day! when i click a button, this codes will be executed (tested, its working)
var cart=document.getElementById('cart');
cart.innerHTML=cart.innerHTML + document.getElementById('name'+cartNum).innerHTML + "(" + qty + ")" + "<br>";
this is the style of my cart
}
#cart {
overflow:auto;
border:solid;
height:500;
margin-left:10px;
margin-right:10px;
margin-top:20px;
margin-bottom:0;
font-size: 12px;
text-align: left;
font-family: Verdana, Geneva, sans-serif;
background-image:url(images/side.gif);
background-repeat:no-repeat;
}
my problem is, the overflow which i set to auto is not working. the div keeps on enlarging its height everytime i click the button. seems like it has a conflict with innerhtml? please help me. replies are REALLY appreciated.