HTML quiz issues
-
Hey– I’ve set up a simple HTML checkbox quiz that I want to use in my wordpress blog. The reset button seems to work, but the “check” button doesn’t. In wordpress, at least. It works when I open the HTML in a regular web browser. Any idea what’s going on?
(Also, this isn’t really a wordpress question, but if anyone knows how I can get the “this is what your score means” information to appear along with the score, I’d be really grateful).
My quiz is on the blog: http://www.twofangirls.com
I think the relevant bit of script is this:
function chk(){
total=0
for(i=0;i<document.f1.length;i++){
if(document.f1.elements[i].type==”checkbox”&&document.f1.elements[i].checked==true){
total+=document.f1.elements [i].value*1
}
}
document.getElementById(“display”).innerHTML=”Your Fangirl Quotient = “+total
}
The topic ‘HTML quiz issues’ is closed to new replies.