title: FacetWP Filters - Reset facets on click of a radiobutton
body: <p>does anyone work with FacetWP? I am trying to reset certain filters if the user selects one of the radio options from the facet "ex_type".</p>
  
  <p>If one any of the radio options are selected, I want this to then reset the other facets automatically. </p>
  
  <p>Facetwp have a function "onclick="FWP.reset()" however from the backend I cannot access the radio buttons. I need to target the radio button choices with a separate jquery function as below, however my code is not working.</p>
  
  <p>Here is the view from my backend:</p>
  
  <pre><code>&lt;div class="group-individual"&gt;                                                              
  
      &lt;?php echo facetwp_display( 'facet', 'ex_type'); ?&gt;
  
  &lt;/div&gt;      
  
  &lt;div class="sub-filters" &gt;
  
          &lt;div class="day"&gt;                                   
  
              &lt;?php echo facetwp_display( 'facet', 'day' ); ?&gt;
  
          &lt;/div&gt;
  
          &lt;div class="time"&gt;
  
              &lt;?php echo facetwp_display( 'facet', 'time' ); ?&gt;
  
          &lt;/div&gt;
  
  &lt;/div&gt;&lt;!--sub-filters--&gt;    
  </code></pre>
  
  <p>The actual code for the "ex_type" radio buttons displayed is this:</p>
  
  <pre><code>&lt;div class="group-individual"&gt;
  
  &lt;div class="facetwp-facet facetwp-type-radio" data-name="ex_type" data-type="radio"&gt;
  
      &lt;div class="facet-wrapper"&gt;
  
          &lt;div class="facetwp-radio" data-value="classes"&gt;
          "classes"
          &lt;/div&gt;
  
          &lt;div class="facetwp-radio" data-value="individual"&gt;
          "individaul"
          &lt;/div&gt;
  
      &lt;/div&gt;
  
  &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>I have tried to refresh the other facet choices with a click function but it is not working. The code I have tried is:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(
     function(){
       $(".facetwp-radio").click(function () {   
         FWP.reset('day');
       });
  }); 
  &lt;/script&gt;
  </code></pre>
  
  <p>And also this:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(
     function(){
       $(".facetwp-radio").click(function () {   
          FWP.facets['day'] = []; 
          FWP.facets['time'] = []; 
       });
  }); 
  &lt;/script&gt;
  </code></pre>
  
  <p>Any suggestions welcomed. Thank you.</p>