Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/12/2011, 12:27
Avatar de ryugen
ryugen
Colaborador
 
Fecha de Ingreso: agosto-2008
Ubicación: Rosario, Santa Fe
Mensajes: 350
Antigüedad: 15 años, 8 meses
Puntos: 187
Respuesta: > Obtener ID de varios checkbox con jQuery

Código Javascript:
Ver original
  1. $('#borrar').click(function(){
  2.          var ids = '';
  3.         $("input:checkbox[name^='chk_registro_']").each(function(index,e){
  4.             var $this = $(this);
  5.             if($this.is(":checked")){
  6.                 var g = $this.attr("id");
  7.                 alert(g+" tiene check");
  8.                 ids += g +',';
  9.             } // if
  10.        
  11.         });
  12.      
  13.     });