Make that when activating an input [checkbox] it is not deactivated when clicking again [closed]

-1

if it can be in jquery or ajax the help would be appreciated the idea is that the user when you click on that checkbox can not distil it

    
asked by Johendry Parra 20.08.2018 в 14:31
source

1 answer

0

you could do it like that

$(document).ready(function(){

     //verificamos si el input checkbox esta seleccionado
     if( $('.micheckbox').is(':checked') ) {

       $(this).attr("disabled",true);//si es asi lo desactivamos
}

} })

    
answered by 20.08.2018 / 15:24
source