Jeg har version 1.3.2.
Jeg har prøvet med denne simple kode, som heller ikke virker:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="
http://www.w3.org/1999/xhtml" xml:lang="da" lang="da">
<head><title>Kalender</title>
<meta http-equiv="content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="css/style.php" type="text/css" />
<script type="text/javascript" src="script/jquery-1.3.2.js"></script>
<script type="text/javascript">
$(function(){
$("#myselect").change(function(){
switch($(this).val()){
case "99":
$("#omr1").show();
$("#omr2").hide();
$("#omr3").hide();
break;
case "1":
$("#omr2").show();
$("#omr3").hide();
break;
case "2":
$("#omr2").hide();
$("#omr3").show();
break;
}
});
});
</script>
</head>
<body>
<select name="type" id="myselect">
<option value="99" id="1">Vælg brugertype:</option>
<option value="1" id="2">Standard bruger</option>
<option value="2" id="3">Administrator</option>
</select>
<div id="omr1">Område 1</div>
<div id="omr2" style="display:none">Område 2</div>
<div id="omr3" style="display:none">Område 3</div>
</body>
</html>