text: $(document).ready(function() {
     'use strict';
  
     /*$('.select2').select2({
  	 minimumResultsForSearch: Infinity
     });
  
     // Select2 Styles
     $('#select-Categories1').select2({
  	 minimumResultsForSearch: ''
     });
      $('#select-Categories2').select2({
  	 minimumResultsForSearch: ''
     });
      $('#select-Categories3').select2({
  	 minimumResultsForSearch: ''
     });
      $('#select-Categories4').select2({
  	 minimumResultsForSearch: ''
     });
      $('#select-Categories5').select2({
  	 minimumResultsForSearch: ''
     });
      $('#select-Categories6').select2({
  	 minimumResultsForSearch: ''
     });
      $('#select-Categories7').select2({
  	 minimumResultsForSearch: ''
     });
      $('#select-Categories8').select2({
  	 minimumResultsForSearch: ''
     });
      $('#select-Categories9').select2({
  	 minimumResultsForSearch: ''
     });
      $('#select-Categories10').select2({
  	 minimumResultsForSearch: ''
     });
  
     // Select2 by showing the search
     $('.select2-show-search').select2({
      dir: "ltr",
  	 minimumResultsForSearch: '',
  	 placeholder: "Search"
     });
  
     $('#job').select2({
  	 minimumResultsForSearch: '',
  	 placeholder: "Search jobs here "
  
     });
     $('#employe').select2({
  	 minimumResultsForSearch: '',
  	 placeholder: "Search profiles here "
     });
  
     function formatState (state) {
  	  if (!state.id) { return state.text; }
  	  var $state = $(
  		'<span><img src="../assets/images/flags/' +  state.element.value.toLowerCase() +
  	'.svg" class="img-flag" /> ' +
  	state.text +  '</span>'
  	 );
  	 return $state;
  	};
  
  	$(".select2-flag-search").select2({
  	  templateResult: formatState,
  	  templateSelection: formatState,
  	   escapeMarkup: function(m) { return m; }
  	});
  	
  	$("select2").select2({
          width: '100%'
      });
  	$(".ad-post-status").select2({
          width: '100%',
  		theme: "classic"
      });
  	$(".select2-show-search").select2({
  	 dir: "ltr",
  	  placeholder: "Select Pice : Min",
  	  width: '100%'
  	});
  	$(".search-price-max").select2({
  	  placeholder: "Select Pice : Max",
  	  width: '100%'
  	});
  	
  	
  	
  	
  	
  	 $('.select2-show-search-property').select2({
  	 dir: "ltr",
  	 placeholder: "Select Owner Entity Type",
  	  multiple: true,
  	  allowClear: true
  		
     });
     
      $(".search-category").select2({
  	  placeholder: "Select category",
  	  allowClear: true,
  	  width: '100%'
  	});
  	
  	 $(".search-location").select2({
  	  placeholder: "Select Location",
  	  allowClear: true,
  	  width: '100%'
  	});
  	$(".advert-type").select2({
  	  placeholder: "Select Advert Type",
  	  allowClear: true,
  	  width: '100%'
  	});
  	$(".car-condition").select2({
  	  placeholder: "Select Condition",
  	  allowClear: true,
  	  width: '100%'
  	});
  	$(".car-brand").select2({
  	  placeholder: "Select Brand",
  	  allowClear: true,
  	  width: '100%'
  	});
  	$(".model").select2({
  	  placeholder: "Select Model : Any model",
  	  width: '100%'
  	});
  	
  	$(".make").select2({
  	  placeholder: "Select Make : Any make",
  	  width: '100%'
  	});
  	
  	$(".bodytype").select2({
  	  placeholder: "Body Type : Select body type",
  	  width: '100%'
  	});
  	$(".fueltype").select2({
  	  placeholder: "Fuel Type",
  	  width: '100%'
  	});
  	$(".mileage-range").select2({
  	  placeholder: "Mileage Range",
  	  allowClear: true,
  	  width: '100%'
  	});
  	$(".currency").select2({
  	  placeholder: "Select currency",
  	  allowClear: true,
  	  width: '100%'
  	});
  	$(".price").select2({
  	  placeholder: "Select Price",
  	  allowClear: true,
  	  width: '100%'
  	});
  	$(".yearofimport").select2({
  	  placeholder: "Select year of import",
  	  allowClear: true,
  	  width: '100%'
  	});
  	$(".year").select2({
  	  placeholder: "Select year ",
  	  allowClear: true,
  	  width: '100%'
  	});
  	
  	$(".filter-change").select2({
  	  placeholder: "Any",
  	  allowClear: true,
  	  width: '100%'
  	});
  	$(".filter-search-common").select2({
  	  placeholder: "Any",
  	  allowClear: true,
  	  width: '100%'
  	});*/
  	
  	
  	 $('.js-example-basic-single').select2({
  	  placeholder: "Any",
  	  allowClear: true,
  	  width: '100%'
  	});
  	 $('.js-example-basic-multiple').select2({
                maximumSelectionLength: 2
              });
   });