Options

add radio button, check button

EtienneEtienne Registered Users Posts: 70 Big grins
edited October 26, 2015 in SmugMug Customization
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

Comments

Sign In or Register to comment.