Hello
I'm trying to use Chosen + Bootstrap in Laravel.
But I would like the appearance using choosen to look like the bootstrap itself.
Reviewtheimageabove:
Inoption1withoutusingLaravelusingChoosenitgetsthewayitisinthebootstrap;
Inoption2usingLaravelisverysmall.
InbothoptionsIcallitthisway:
$('#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><scriptsrc="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><divclass="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>