Herzlichen Dank für die Unterstützung! Eigentlich sollte die Befragung heute gestartet werden, dass es nicht funktioniert, habe ich beim letzten Testen bemerkt.
Hier der Code einer Mehrfachantwort:
<script type="text/javascript">
new S2Selection.LinkSelect2Text("MI05_01", "MI18_01");
new S2Selection.LinkSelect2Text("MI05_02", "MI18_02");
new S2Selection.LinkSelect2Text("MI05_03", "MI18_03");
new S2Selection.LinkSelect2Text("MI05_04", "MI18_04");
new S2Selection.LinkSelect2Text("MI05_05", "MI18_05");
new S2Selection.LinkSelect2Text("MI05_06", "MI18_06");
new S2Selection.LinkSelect2Text("MI05_07", "MI18_07");
new S2Selection.LinkSelect2Text("MI05_08", "MI18_08");
new S2Selection.LinkSelect2Text("MI05_09", "MI18_09");
new S2Selection.LinkSelect2Text("MI05_10", "MI18_10");
</script>
<script type="text/javascript">
<!--
var optionA = document.getElementById("MI05_01");
var optionB = document.getElementById("MI05_02");
var optionC = document.getElementById("MI05_03");
var optionD = document.getElementById("MI05_04");
var optionE = document.getElementById("MI05_05");
var optionF = document.getElementById("MI05_06");
var optionG = document.getElementById("MI05_07");
var optionH = document.getElementById("MI05_08");
var optionAt = document.getElementById("MI18_01");
var optionBt = document.getElementById("MI18_02");
var optionCt = document.getElementById("MI18_03");
var optionDt = document.getElementById("MI18_04");
var optionEt = document.getElementById("MI18_05");
var optionFt = document.getElementById("MI18_06");
var optionGt = document.getElementById("MI18_07");
var optionHt = document.getElementById("MI18_08");
var frage_studium = document.getElementById("was_wo");
var frage_ausbil = document.getElementById("MI07_qst");
// HTML-ID der Frage SD08
function studium() {
if (((optionE.checked) || (optionF.checked) || (optionG.checked) || (optionH.checked)) || ((optionEt>0) || (optionFt>0) || (optionGt>0) || (optionHt>0))) {
frage_studium.style.display = "";
} else {
frage_studium.style.display = "none";
}
}
SoSciTools.attachEvent(optionE, "click", studium);
SoSciTools.attachEvent(optionF, "click", studium);
SoSciTools.attachEvent(optionG, "click", studium);
SoSciTools.attachEvent(optionH, "click", studium);
SoSciTools.attachEvent(optionEt, "click", studium);
SoSciTools.attachEvent(optionFt, "click", studium);
SoSciTools.attachEvent(optionGt, "click", studium);
SoSciTools.attachEvent(optionHt, "click", studium);
studium();
function ausbil() {
if ((optionB.checked) || (optionC.checked) || (optionD.checked) ) {
frage_ausbil.style.display = "";
} else {
frage_ausbil.style.display = "none";
}
}
SoSciTools.attachEvent(optionB, "click", ausbil);
SoSciTools.attachEvent(optionC, "click", ausbil);
SoSciTools.attachEvent(optionD, "click", ausbil);
SoSciTools.attachEvent(optionBt, "click", ausbil);
SoSciTools.attachEvent(optionCt, "click", ausbil);
SoSciTools.attachEvent(optionDt, "click", ausbil);
ausbil();
</script>