kwhubby
11-07-2002, 07:49 AM
how do you get to a div tag with a variable being the name. Here is an example, were the purple is wrong and were I need help
<script>
var x = prompt("which div ","")
var q = document.getElementById[x].properties
.....
</script>
<body>
<div id="zxcv" style="..."></div>
<div id="asdf" style="..."></div>
<div id="fdsa" style="..."></div>
<script>
var x = prompt("which div ","")
var q = document.getElementById[x].properties
.....
</script>
<body>
<div id="zxcv" style="..."></div>
<div id="asdf" style="..."></div>
<div id="fdsa" style="..."></div>