event-schedule/app.js

Code and working example pages keep their original identifiers and sample text. The lesson and file guidance explain them in your language.

document.querySelector('#topic').addEventListener('change',e=>{for(const row of document.querySelectorAll('[data-topic]'))row.hidden=e.target.value!=='all'&&row.dataset.topic!==e.target.value;});