3
I’m putting together a test, I just have the html structure done, I wanted to know how to know which of the radio input is most selected. Ex.: Most selected was "A)" then when submitting the form, is displaying the image corresponding to most letter "A)" and so on with the other alternatives "B)", "C"), "D)" E "E)"... is a very simple html...
1) Questão 1
</font><font size=4 color="black" face="arial"><p>
<label>
<input type="radio" name="questao1" value="a" /> A) resoposta 1 </label>
<br />
<label>
<input type="radio" name="questao1" value="b" /> B) resposta 2</label>
<br />
<label>
<input type="radio" name="questao1" value="c" /> C) resposta 3</label>
<br />
<label>
<input type="radio" name="questao1" value="d" /> D) resposta 4</label>
<br>
2) Questão 2
</font><font size=4 color="black" face="arial"><p>
<label>
<input type="radio" name="questao2" value="a" /> A) resoposta 1 </label>
<br />
<label>
<input type="radio" name="questao2" value="b" /> B) resposta 2</label>
<br />
<label>
<input type="radio" name="questao2" value="c" /> C) resposta 3</label>
<br />
<label>
<input type="radio" name="questao2" value="d" /> D) resposta 4</label>
Also for more organized HTML: http://jsfiddle.net/yLgrtaw3/2/
– Sergio
Thank you very much, this will help me a lot! But how do I stop instead of appearing the number of selected alternatives, appear the result corresponding to most selected alternatives... I could even direct to an html page where I will create one for each letter... If the majority is "a" javascript directs to an html page referring to most of "a" there will be an image and a few more things I want to add... Why so, I wanted to take a personality test...
– Karina
@Karina is what you’re looking for: http://jsfiddle.net/m3toobdk/1/ ?
– Sergio
Perfect, just that!!! Thank you very much, from my heart.
– Karina
@Karina.
– Sergio