Seleccionar todos los checkbox con JQuery


$("#select_all").click(function() { 
      var _status = this.checked; 
      $("input[type=checkbox]").each(function() { 
          this.checked = _status; 
      }); 
  });


Simple no? Por cierto no he muerto; he encontrado algunos retrasos en mis pendientes pero sigo vivo :D 

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.

Únete a otros 233 seguidores