addeventlistiner is not working on custom html block. I trying to integrate it with dashboard.
<select id="top-filter" class="filterSelect">
<option value="investigator">Top 10 Investigator Agent</option>
<option value="supervisor">Top 10 Supervisor</option>
<option value="chef">Top 10 Chef Said</option>
</select>
document.getElementsByClassName("filterSelect").addEventListener("change", function() {
fetchData(this.value);
});
Thank you for the help.