JS gevorderde |
|
var radio = ["Verder","Opslaan","Afsluiten"];
function setButtonVisible() {
var y = radio.length;
for(x=0; x<y;x++) {
if (document.getElementById("radio"+(x+1))) {
document.getElementById(radio[x]).style.visibility = (document.getElementById("radio"+(x+1)).checked == true) ? "visible" : "hidden";
}
}
var radio = ["Verder","Opslaan","Afsluiten"]; function setButtonVisible() { var y = radio.length; for(x=0; x<y;x++) { if (document.getElementById("radio"+(x+1))) { document.getElementById(radio[x]).style.visibility = (document.getElementById("radio"+(x+1)).checked == true) ? "visible" : "hidden"; } }
zoiets bedoel je dan? |