Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

104
Vistas
Gray the card on click in Bootstrap

A common function in infinite list is that, the item will be grayed after when we clicked on him. Can we get this effect with only HTML, CSS, JS, jQuery(on the user's side)?

How it works?

1.) the user clicks on the card element enter image description here 2.) When pressed, class text-muted is added to the card element, causing it to be grayed out as below enter image description here

The simplest example of code in bootarap looks like this:

  {% for obj in objects %}
  <a href="/detail/id/" target="_blank">
    <div class="card" id="card{{ obj.id }}">
      <!--..content card..-->
    </div>
  </a>
  {% endfor %}
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You just can add CSS pseudo-class to visited links a:visited { color: grey; }. Without custom class and javascript logic. See doc

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda