lol, don't apoligize to me!! Your helping me out!! This is my first foray into JS, and I appreciate all the help i can get.. I've never needed JS before, but I"m growing to like it, and learning how useful it can be..
Where I'm at now..
I changed the function, just a tad..
Code: Select all
function show(id,id2) {
if (document.all)
{
x = document.all[id];
y = document.all[id2];
} else if (document.getElementById)
{
x = document.getElementById(id);
y = document.getElementById(id2);
}
else if (document.layers)
{
x = document.layers[id];
y = document.layers[id2];
}
x.style.overflow = "visible";
x.style.visibility = "visible";
x.style.height = "auto";
y.style.overflow = "hidden";
y.style.visibility = "hidden";
y.style.height = "0 px";
}
Then I call it like this:
Code: Select all
<p align="center"><input type="radio" name="listPref" value="ours" onclick="show('a','b')">
<input type="radio" name="listPref" value="yours" onclick="show('b','a')">
And then here are the actual div's
Code: Select all
<div class="a" id="a">Random things will be display here<br>
Random things will be display here<br>
Random things will be display here<br>
Random things will be display here<br>
</div>
<div class="b" id="b">
<?php
for($i=0;$i<$numberItems;$i++){
echo 'Item To Be Found ';
echo '<input type="text" name="itemNumber'.$i.'" size="35" maxlength="30"><br>';
}
?>
</div>
All is working well, ecept for that id=b area.. It echo's out Item To Be Found, but isn't echoing the form.. I can see it in the source of the page, but it's not being displayed in the browser.. It appears that there is a 'block' that's the appropriate size, but it isn't clickable (I can see it if I highlight, else it's invisible)...
Addendum, it's working in FF, but not in IE...