Hay innumerables instancias sobre la casilla de verificación JavaScript obteniendo la casilla de verificación.
Implementación JS:
var form = document.getElementById ("form2"); var campo = form.elements ["test2"]; var option = dining.getSelectedOption (form, campo); var Message = ""; for (var i = 0, len = opción.lenggth; i <len; i ++) {mensaje + = "Id:" + opción [i] .id + "/nselected name:" + opción [i + {i]. valor: " + opción [i] .value +"/n/n ";} alerta (mensaje);/*getSelectedOption: function (selectform, selectionField) {var result = []; var option = null; for (var i = 0; i <selectionField.length; i ++) {opción = selectionField [i]; if (opción www.Vevb.com} return resultado;} <form de formular ID = 'form2'> <label> clasificación: </label> <input id = 'aaaa' type = 'checkbox' name = 'test2' valor = '1'> <etiqueta for = 'aaaa'> mensualmente sales </etiquetado <input id = 'bbbbbbb' type = 'checkBox' name = 'test2' value = '2' 2 '2' 2 '2' 2 '2' 2 '2' 2 '2' 2 '2' 2 '2' 2 '2' 2 '2' 2 '2' 2 '2' 2 '2' 2 '2' 2 ' para = 'bbbbb'> calificación </selet> <input id = 'ccccc' type = 'checkbox' name = 'test2' value = '3'> <etiqueta for = 'cccccccc'> promocione </selete> <Br style = 'Clear: ambos'> <Lelicta> Categoría: </etlabe> <input id = 'ddddd' type = 'checkbox' name = 'test2' test2 'value 4' 4 '4' 4 '4' 4 '4' 4 '4' 4 '4' 4 '4' 4 '4' 4 '4' 4 ' for = 'ddddd'> paquete empresarial </etiqueta> <input id = 'eeeeee' type = 'checkbox' name = 'test2' value = '5'> <etiqueta for = 'eeeeee'> plato frío </selabel> <input id = 'ffffff' type = 'checkbox' name = 'test2' valor = '6'> </form> ", y", y ", y", y ",