Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

106
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!