Calling a repeated set of instructions in a function.
I am writing a quiz for my students. There are set of question marks that I keep needing to hide.
Here are the instructions that work.
this.qmmcm.visible=false;
this.qcmm.visible=false;
this.qmkm.visible=false;
this.qcmmm.visible=false;
I have written these into a function like this:
function hidequestionmarks();{
this.qmmcm.visible=false;
this.qcmm.visible=false;
this.qmkm.visible=false;
this.qcmmm.visible=false;
}
But when I try to call these from another function, it doesn't work.
I use the instruction
hidequestionmarks();
in the other function.
Can someone given me some guidance as to what I am doing wrong.
Thank you
Rod
