anchor.diff:              $("#location_filter").select2({
                   placeholder: "Select a location"
               });
  +
  +            $("#category_filter").change(function() {
  +                enableFilterButtons();
  +            });
           });
  +
  +        var isFiltersActive = false;
  +
  +        function clearFilters() {
  +            disableFilterButtons();
  +            $("#price_from").val("");
  +            $("#price_to").val("");
  +            $("#date_from").val("");
  +            $("#date_to").val("");
  +        }
  +
  +        function enableFilterButtons() {
  +            $("#filter_button").removeAttr("disabled");
  +            $("#clear_button").removeAttr("disabled");
  +        }
  +
  +        function disableFilterButtons() {
  +            $("#filter_button").attr("disabled", "disabled");
  +            $("#clear_button").attr("disabled", "disabled");
  +        }
       </script>
   </head>
   <body>
  
positive.code:                         </div>
                          <div><br/></div>
                          <div>
                              <div class="pull-left"><button type="button" class="btn btn-default" disabled>Filter</button></div>
                              <div class="pull-right"><button type="button" class="btn btn-default" disabled>Clear filters</button></div>
                          </div>
                      </div>
                  </div>
  
negative.code: 
  
  
  </body>
  
  
  