anchor.diff:      <script type='text/javascript' src='<c:url value="../resources/js/select2.min.js"/>'></script>
   
       <script type="text/javascript">
  -        $(document).ready(
  -                function() {
  -                    $.getJSON('http://localhost:8080/tenders/statuses', {
  -                        ajax : 'true'
  -                    }, function(data){
  -                        var html = '<option value="">Active statuses</option>';
  -                        var len = data.length;
  -                        for (var i = 0; i < len; i++) {
  -                            html += '<option value="' + data[i].id + '">'
  -                                    + data[i].name + '</option>';
  -                        }
  -                        html += '</option>';
  -
  -                        $('#statuses').html(html);
  -                    });
  -
  -                });
  -
  -    </script>
  -
  -    <script>
           $(document).ready(function() {
               $('#startDate, #endDate').datepicker({
                   format: 'mm-dd-yyyy',
  
positive.code:                         </div>
                          <div>
                              <div>Status</div>
                              <form>
                                  <select class="form-control selectpicker" id="statuses"/>
                              </form>
                          </div>
                          <div>
                              <div>Suitable price</div>
  
negative.code: 
              $("#category_filter, #location_filter, #item_filter, #status_filter, #price_from, #price_to, #date_from, #date_to").change(function() {
                  enableFilterButtons();
              });
  
              $.getJSON('http://localhost:8080/tenders/statuses', {
                    ajax : 'true'
                  }, function(data){
                    var html = '<option value="">Active statuses</option>';
                    var len = data.length;
                    for (var i = 0; i < len; i++) {
                        html += '<option value="' + data[i].id + '">'
                                 + data[i].name + '</option>';
                    }
                    html += '</option>';
  
                    $('#status_filter').html(html);
              });
          });
  
  