Topic: Can I use normal Bootstrap select controls in a form with MDB?
I'm using MDB Pro with jquery. Not sure what version, but the mdb.js file is dated 2/20/2018. In a form, I'm able to successfully initialize, render and use MDB select controls. But when I try to use a standard Bootstrap select control, it doesn't appear on the rendered page. I can inspect the element in the browser debugger and see it there. Here are my tags:
<form>
<div class="form-group">
<label for="sel1">Select list (select one):</label>
<select class="form-control" id="sel1">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
</div>
</form>
Does using MDB prevent you from using normal Bootstrap select controls?
Add comment
Marta Szymanska staff pro premium answered 7 years ago
Hi,
Add this code:
<div class="form-group">
<label for="exampleFormControlSelect1">Example select</label>
<select class="form-control browser-default" id="exampleFormControlSelect1">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
and don't initialize our material select.
Best,
Marta FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No