Answer to Question #224040 in HTML/JavaScript Web Application for Rachel

Question #224040

I have a simple HTML personality quiz, with a Javascript function for a set of radio buttons. I want to compute a score based on the numerical values of the responses to the “I see myself” questions; like an addition or a mean in a PHP script.

<script language="JavaScript1.2">

function writequestion(txt, qno)
{
  document.write("<li><b> ... " + txt + "</b><br>")
  document.write("Disagree")
  document.write("&nbsp <input type=radio name=question[" + qno + "] value=1 checked>1")
  for (i=2; i<=5; i++) {
    document.write("&nbsp <input type=radio name=question[" + qno + "] value=" + i + ">" + i)
  }
  document.write("&nbsp Agree")
}

writequestion("is talkative", 1)
writequestion("does a thorough job", 2)
writequestion("is original, comes up with new ideas", 3)
writequestion("is helpful, unselfish with others", 4)



</script>







1
Expert's answer
2021-08-06T12:54:42-0400
Dear Rachel, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS