26
rated 0 times
[
31]
[
5]
/ answers: 1 / hits: 145424
/ 13 Years ago, thu, november 24, 2011, 12:00:00
What I do wrong? Why div height didn't change?
<html>
<head>
</head>
<body >
<button type=button onClick = document.getElementById('chartdiv').style.height = 200px>Click Me!</button>
<div id=chartdiv style=width: 100%; height: 50px; background-color:#E8EDF2></div>
</body>
</html>
More From » html