Desactivar checkboxes cuando se clickean 2 cuales quiera
AUTOR PREGUNTA #1
[color=#1A1A1A][font='Lucida Sans Unicode', 'Lucida Sans', 'Lucida Grande', Malayalam, Verdana, sans-serif][size=3]Necesito hacer que cuando el cliente haga click en 2 cualquiera que sea, se desactiven todos los demás que no fueron elegidos. [/size][/font][/color]
-
¿Tienes la misma pregunta? Yo también
Esto también te interesa!
PREGUNTAS SIMILARES
#2
<script>
var checkboxes = function(fn){
var i = 0, box
while(i <= 10) (box = document.getElementById("opcion" + i++), box && fn.apply(box,[]))
};
checkboxes(function(){
this.onclick = function(){
var count = 0
checkboxes(function(){
this.checked && count++
})
checkboxes(function(){
!this.checked && count >= 5 ? this.disabled = !0 : this.disabled = !1
})
}
});
</script>