Hi Trevor,
Apologies for starting another thread about this!
After going off to find how to reset the search through javascript, i saw that someone else has already asked about this before and used the code below to reset the search.
I’ve added this to my page and it seems to be working like i wanted it to. However, the county dropdown isn’t working independently now.
Can you help me?
(function ( $ ) {
"use strict";
jQuery(document).on("sf:ajaxstart", ".searchandfilter", function(){
var tax1 = jQuery('.sf-field-taxonomy-regions select').val();
if(location.search.search('_sft_regions='+tax1) == -1) {
jQuery('.sf-field-taxonomy-counties select').val("");
}
});
}(jQuery));