Método jquery para seleccionar al menos un elemento para un grupo de casillas de verificación

< div class = "form-input" id = "stopStatus" > 
  < label > < input type = "checkbox" name = "SSStatus" id = "SSStatus" ></ label > 
  < label > < input type = "checkbox " name =" SGStatus " id =" SGStatus " ></ label > 
  < label > < input type =" checkbox "name = "PFStatus" id = "PFStatus"></ etiqueta > 
</ div >
var checkboxObj = $ ("# stopStatus"). find ("input [type = checkbox]: check" );
 if (checkboxObj.size () == 0 ) { 
   dialog ( "Seleccione al menos un elemento!", 0 )
    return  false ; 
   }

 

Supongo que te gusta

Origin www.cnblogs.com/firstcsharp/p/12700137.html
Recomendado
Clasificación