Hello,
I have a question about selecting selectboxes with Javascript. I have upload the files on http://www.mikevierwind.nl/javascript/risicoinventarisatie.htm Here you see a table with a lot of questions and radiobuttons. Every question have 2 radiobuttons, yes and no.
When you go to the first question. "Diabetes" Than you choose for the radiobutton "ja" You see that another question will now show. But when I choose for "nee" than the question must be gone. How can I create that with the Javascript? My Javascript code is:
var diabetes = false;
var diabetesvraag = $("#blokken table.lichamelijkegezondheid .diabetesextra")
var buttondiabetes = $("#blokken table.lichamelijkegezondheid .diabetesja")
diabetesvraag.hide();
buttondiabetes.click(function()
{
if(diabetes == false)
{
diabetes = true;
diabetesvraag.show();
}
else
{
diabetes = false;
diabetesvraag.hide();
}
return false;
});