martes, 18 de junio de 2013

Validar Checkboxes con jQuery

  $('#formPeriods').submit(function(){
     var check = $("input[type='checkbox']:checked").length;
     if(check == ""){
      alert("debe seleccionar almenos uno");
     }else {
      alert("chek selected :D");
     }
     
    });

No hay comentarios:

Publicar un comentario