0
Hello!
I’m trying to use the Chosen + Bootstrap in Laravel.
But I would like the appearance using the choosen to look like the bootstrap itself.
Analyze the image above:
Option 1 without using Laravel using Choosen is the way it is in bootstrap;
In option 2 using Laravel is very small.
In both options I call it that way:
$('#cidades').chosen( {
allow_single_deselect: true,
search_contains: true,
no_results_text: "Nenhum resultado enontrado!"
} );
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.3/chosen.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chosen/1.8.3/chosen.jquery.min.js"></script>
<div class="form-group ">
<label for="tipoos" class="col-md-1 control-label">Cidades</label>
<div class="col-md-3">
<select class="form-control" id="cidades" data-placeholder="Selecione a cidade">
<option value="0"></option>
<option value="1">Manaus</option>
<option value="1">Boa Vista</option>
<option value="2">São Paulo</option>
</select>
</div>
</div>