I have installed Bootstrap-Select package, version 1.13.1.
https://silviomoreto.github.io/bootstrap-select/
PROBLEM
I want to achieve multiple select functionality in my reactJS + Bootstrap project. However, the styling does not seem to be same as what is shown in the documentation example. Mine still shows 'basic' type of style.
What did I miss?
WHAT I HAVE DONE
I have put below piece in my jsx file.
class MyTestBox extends React.Component {
//blah blah
render() {
//blah blah
<div class="row">
<div class="col-xs-3">
<div class="form-group">
<select class="selectpicker form-control" multiple>
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
</select>
</div>
</div>
</div>
}}
var MyTestBox = ReactDOM.render(
<MyTestBox />,
document.getElementById('content')
);
This is my cshtml file.
@{
ViewBag.Title = "Hello World";
}
//blah blah
<div id="content"></div>
@Scripts.Render("~/bundles/myTestBundle")
<script type="text/javascript">
$(function () {
$('.selectpicker').selectpicker();
});
</script>
As per other posts, seems like I still need to add the URLs somewhere to refer to bootstrap-select libraries. Should I do that as well? If yes, how?