If you have any question? we are glad to consult you as soon as possible
document.addEventListener("DOMContentLoaded", function () {
const urlParams = new URLSearchParams(window.location.search);
const locationFilter = urlParams.get("location");
if (locationFilter) {
setTimeout(function () {
let filterElement = document.querySelector(`[data-location="${locationFilter}"]`); // Adjust selector
if (filterElement) {
filterElement.click(); // Simulate a click to apply the filter
}
}, 1000); // Delay to ensure elements are loaded
}
});