Posts Tagged código

Comprobar si un checkbox esta seleccionado con jQuery

Para comprobar si un checkbox esta seleccionado basta crear un selector de jQuery y verificar si su valor esta en “on”

$("#idcheckbox").bind("change",function(){
    if($(this).val()=="on"){
        alert("Seleccionado");
    }
});

, , ,

12 Comments