My goal is to filter colors when a user searches for a color code. Currently, the search function displays the correct number of filtered items, but the color bubbles are not being removed as intended.
I am working on removing the bubbles when a search is performed.
$(document).ready(function() {
var jobCount = $('#list2 .in2').length - 1;
$('.list-count2').text(jobCount + ' items');
$("#search-text").keyup(function() {
//$(this).addClass('hidden');
var searchTerm = $("#search-text").val();
...
@media (max-width: 428px) {
svg.bi.bi-search {
display: none;
}
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f0929f9f848384829180b0c5dec2dec3">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
...
</li>
</ul>
</div>
</div>
</li>
</ul>
<div class="colPadding"></div>