Select only checkbox

[Total: 1    Average: 5/5]

These checkboxes can only be selected one at a time.

Body Code:


function selecionatudo(check,n) {

for (i=0;i<5;i++) {

if (check) {







<form name="form1" method="post" action="">

<INPUT TYPE=checkbox NAME="chbx" onClick="selecionatudo(true,1)"><br>

<INPUT TYPE=checkbox NAME="chbx" onClick="selecionatudo(true,2)"><br>

<INPUT TYPE=checkbox NAME="chbx" onClick="selecionatudo(true,3)"><br>

<INPUT TYPE=checkbox NAME="chbx" onClick="selecionatudo(true,4)"><br>

<INPUT TYPE=checkbox NAME="chbx" onClick="selecionatudo(true,5)"><br>


Times Viewed: 12

Leave a Reply

Your email address will not be published. Required fields are marked *