add radio button, check button
Etienne
Registered Users Posts: 70 Big grins
Hello,
do you know if it's possible to add radio button in a HTML Block ?
In fact, radio button runs but not the check button.
Example with this code :
<FORM NAME="qcm1">
<B>Question :</B><BR>
Questions sur des photos <BR>
<B>Réponses :</B>
<INPUT TYPE="radio" NAME="choix" value="30">photo1</INPUT>
<INPUT TYPE="radio" NAME="choix">photo2</INPUT>
<INPUT TYPE="radio" NAME="choix">photo3</INPUT>
<INPUT TYPE="radio" NAME="choix">photo4</INPUT>
<BR><BR>
<INPUT TYPE="button" NAME="bouton" VALUE="Vérifier"
ONCLICK="if (document.qcm1.choix[2].checked) {alert('Bonne réponse.')}
else {alert('Réponse fausse.')}">
</INPUT>
</FORM>
radion buttons appears but the check button with the onclick action does not runs. Action code does not run.
Is there an issue ?
Thanks
Etienne
do you know if it's possible to add radio button in a HTML Block ?
In fact, radio button runs but not the check button.
Example with this code :
<FORM NAME="qcm1">
<B>Question :</B><BR>
Questions sur des photos <BR>
<B>Réponses :</B>
<INPUT TYPE="radio" NAME="choix" value="30">photo1</INPUT>
<INPUT TYPE="radio" NAME="choix">photo2</INPUT>
<INPUT TYPE="radio" NAME="choix">photo3</INPUT>
<INPUT TYPE="radio" NAME="choix">photo4</INPUT>
<BR><BR>
<INPUT TYPE="button" NAME="bouton" VALUE="Vérifier"
ONCLICK="if (document.qcm1.choix[2].checked) {alert('Bonne réponse.')}
else {alert('Réponse fausse.')}">
</INPUT>
</FORM>
radion buttons appears but the check button with the onclick action does not runs. Action code does not run.
Is there an issue ?
Thanks
Etienne
0
Comments
SmugMug Sites - Creative Examples
Favorite Images and SmugMug Designs
http://help.smugmug.com/customer/portal/articles/1259577
SmugMug Sites - Creative Examples
Favorite Images and SmugMug Designs