Quiero que se marque la casilla de verificación cuando estoy usando la función de alternar jquery. Funciona bien cuando uso el .bind('click')
.Casilla de verificación que no se comprueba al usar jquery toggle
$('#chkb').toggle(function() {
$('#va').text("checked");
$('#chkb').attr('checked', 'checked');
},
function() {
$('#chkb').attr('checked', 'false');
$('#va').text("");
});
html
<input type="checkbox" id="chkb" />
¿Cómo lo consigo.
Gracias Jean
¿Qué tal esta chicos: var apchk = ''; . \t \t \t \t \t \t \t \t $ ('# c') html (apchk); – X10nD
cómo * sobre * eso? –