...duly noted.
Was something like this what you had in mind?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
...
<script type="text/javascript">
function specificBoxVisible(value) {
specBox = document.getElementById("specificBox");
if (value == "home") {
specBox.className = "displayOff";
} else {
specBox.className = "displayOn";
}
}
</script>
...
Specify a basic location: <input type='radio' name='home' value='home' onclick="specificBoxVisible('home')">Home <input type='radio' name='home' value='away' onclick="specificBoxVisible('away')">Out <input type='radio' name='home' value='either' onclick="specificBoxVisible('either')" checked='yes'>Either<br>
...tried that in both browsers and it works swimmingly. I guess for some reason when I wrote the initial version I was attracted to the idea of javascript getting the values automatically, and the previous, contrived solution was the only way I could figure to do it. (I'm sure there's a simpler way, but like I said, I couldn't find it.)
Such is one of my big problems in coding... often, I'll take a somewhat unusual route to accomplish what I desire when I can't seem to figure a quicker one that I know probably exists... I wish there were a "Code Critique" forum where people could suggest better techniques, as most of my code, though functional, would probably make more experienced programmers scratch their heads. (Is there such a forum?)
Thanks kindly,
wiswif