I recently started working on a project with the Material Design theme from for a CodeIgniter application. However, I've encountered an issue with the dropdown functionality. It seems that Bootstrap is altering the original code, transforming it from this:
<select class="form-control show-tic" data-live-search="true" name="idepe" id="idepe">
<option value="1">ALDIPH Alger</option>
<option value="2">ALTRO Skikda</option>
<option value="3">SOTRAMO</option>
<option value="4">ENPS Alger</option>
<option value="5">SOTRAMEST</option>
</select>
to this modified code:
<div class="btn-group bootstrap-select form-control show-tic">
<button type="button" class="btn dropdown-toggle btn-default" data-toggle="dropdown" data-id="idepe" title="ALTRO Skikda" aria-expanded="false">
<span class="filter-option pull-left">ALTRO Skikda</span>
<span class="bs-caret">
<span class="caret"></span>
</span>
</button>
<div class="dropdown-menu open" style="max-height: 368px; overflow: hidden; min-height: 132px;">
<div class="bs-searchbox">
<input type="text" class="form-control" autocomplete="off">
</div>
<ul class="dropdown-menu inner" role="menu" style="max-height: 318px; overflow-y: auto; min-height: 82px;">
<li data-original-index="0" class="active"><a tabindex="0" class="" style="" data-tokens="null"><span class="text">ALDIPH Alger </span><span class="glyphicon glyphicon-ok check-mark"></span></a></li>
<li data-original-index="1" class="selected"><a tabindex="0" class="" style="" data-tokens="null"><span class="text">ALTRO Skikda </span><span class="glyphicon glyphicon-ok check-mark"></span></a></li>
// More list items here...
</ul>
</div>
<select class="form-control show-tic" data-live-search="true" name="idepe" id="idepe" tabindex="-98">
<option value="1">ALDIPH Alger </option>
<option value="2">ALTRO Skikda </option>
// More options here...
</select>
</div>
Is there a way to prevent Bootstrap from automatically modifying the dropdown code like this?