Untitled
unknown
plain_text
9 months ago
783 B
13
Indexable
document.getElementById("clearAll").addEventListener("click", function() {
var selects = document.querySelectorAll('select');
selects.forEach(function(select) {
select.selectedIndex= -1;
});
});
const checkboxes = document.querySelectorAll('#filterForm input[type="checkbox"]');
checkboxes.forEach(checkbox => {
checkbox.addEventListener('change', () => {
document.getElementById('filterForm').submit();
});
});
const selects = document.querySelectorAll('#filterForm select');
selects.forEach(select => {
select.addEventListener('change', () => {
document.getElementById('filterForm').submit();
})
})Editor is loading...
Leave a Comment