The starter is the completed card-selection directory from step one, with a labelled search field and status elements added. Selection already works; focus on filtering rather than rewriting it. The preceding bicycle-route demo used different IDs and route data.
Keep every member card in the DOM. On each input event, compare a trimmed, case-insensitive query against both its name and skill. Toggle hidden on each card, update the live count, and show the empty-state paragraph only when none match. Clearing the field must restore all cards.
Recall the route-search demo: filtering changes visibility, not the underlying list. In a different recipe index, a normalized query could drive one card like this:
const query = document.querySelector("#recipe-query")
.value.trim().toLowerCase();
const recipe = document.querySelector("[data-dish]");
recipe.hidden = !recipe.dataset.dish
.toLowerCase()
.includes(query);
An empty string matches every dish. For the directory, repeat the comparison for every card, check both name and skill, count visible cards, and update the status and empty state together.
Select Mina before searching for bike. Her details must return to the default prompt when her card becomes hidden. Clearing the search reveals Mina again but does not silently select her. Edit the supplied files, Run, then Submit.
#result-count a polite live status with role="status" and aria-live="polite".#result-count to report the visible number of members after a search.#empty-state only when no cards match, and hide it again when results return.Try BIKE, then zzz, then clear. The next step starts from this solution, so your selected-card behavior remains intact.