was stimmt da nicht?
schließlich sollte das ganze nur ausgeführt werden, wenn die auswahl 'alle kategorien' selektiert wurde.
deshalb hier noch ne if anweisung mit drin, die noch net funktioniert :-(
<script type="text/javascript">
function auswahl() {
alle=0;
anzahl = document.forms['auftrag'].elements["kathegorie[]"].length;
for(var i = 0; i < anzahl; i++)
{
if(document.forms['auftrag'].elements["kathegorie[]"].options[i].value == 'Alle Kategorien' & document.forms['auftrag'].elements["kathegorie[]"].options[i].checked)
{alle=1;}
}
if(alle!=0)
{
for(var i = 0; i < anzahl; i++)
{
document.forms['auftrag'].elements["kathegorie[]"].options[i].selected = true;
}
}
}
//--><script type="text/javascript">
function auswahl() {
alle=0;
anzahl = document.forms['auftrag'].elements["kathegorie[]"].length;
for(var i = 0; i < anzahl; i++)
{
if(document.forms['auftrag'].elements["kathegorie[]"].options[i].value == 'Alle Kategorien' & document.forms['auftrag'].elements["kathegorie[]"].options[i].checked)
{alle=1;}
}
if(alle!=0)
{
for(var i = 0; i < anzahl; i++)
{
document.forms['auftrag'].elements["kathegorie[]"].options[i].selected = true;
}
}
}
</script>