moin Momo :)
folgender Code tut genau das, was du dir wünscht (getestet mit IE und FF). Oder habe ich deine Anforderung falsch verstanden?
<script language="JavaScript">
function auswahl() {
var f = document.forms[0]
if (f.test.selectedIndex==1){
document.getElementById("us").style.display = "block";
document.getElementById("eu").style.display = "none";
document.getElementById("de").style.display = "none";
}
if (f.test.selectedIndex==2){
document.getElementById("eu").style.display = "block";
document.getElementById("us").style.display = "none";
document.getElementById("de").style.display = "none";
}
if (f.test.selectedIndex==3){
document.getElementById("de").style.display = "block";
document.getElementById("us").style.display = "none";
document.getElementById("eu").style.display = "none";
}
}
</script>
[code lang=html]
<form>
<select name="test" onchange="auswahl();">
<option value="0" SELECTED>sel...</option>
<option value="1">us</option>
<option value="2">eu</option>
<option value="3">de</option>
</select>
</form>
<div id="us" style="display:none;">test us</div>
<div id="eu" style="display:none;">test eu</div>
<div id="de" style="display:none;">test de</div>
[code]
liebe Grüße aus Berlin
lina-
--
Self-Code: ie:% fl:( br:^ va:) ls:/ fo:| rl:( ss:) de:] js:| mo:)
Self-Code: ie:% fl:( br:^ va:) ls:/ fo:| rl:( ss:) de:] js:| mo:)