error_reporting(E_ALL);
ini_set('display_errors', 0);
ini_set('log_errors','on');
ini_set('error_log', __DIR__ . '/logs/main_error.log');
php_value error_log logs/parse_error.log
try(){
}
catch(){
error_log($e->getMessage() . PHP_EOL, 3, __DIR__. '/logs/db_error.log');
}
<select id="select-typepart" name="typepart" class="selectpicker form-control" data-max-options="3" data-live-search="true">
<option value="0">не выбрано</option>
<option value="1">выбрано1</option>
<option value="2">выбрано2</option>
</select>
<script src="http://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.7.5/js/bootstrap-select.min.js"></script>
$('select[name="typepart"]').select2({ // и по id пробовал выбирать и просто по селектору
language: {
noResults: function (params) {
return "Нет результатов ... или что-то ещё";
}
}
});