Topic: Material Select fields not showing up
I had coded a page which contained some material select forms. It worked well under 4.7.1 I updated from 4.7.1 to 4.8.8 today, and the material selects don't show up anymore. If I use the default browser select, everything works, but the material selects just don't.
The code is just like the one you suggest here : https://mdbootstrap.com/docs/jquery/forms/select/ And, of course, I initialized it in my js file, copying exactly what is on your website.
The code on my html page :
<select class="mdb-select md-form">
<option value="" selected>Univers / Sytème de jeu</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
The script in my JS file :
$(document).ready(function() {
$('.mdb-select').materialSelect();
});
MDBootstrap staff pro premium priority answered 5 years ago
Hi Doc,
Your code works fine which is displayed in the snippet I created copying your code: https://mdbootstrap.com/snippets/jquery/pjoter-2-0/1046655
You probably transitioned with some issue from 4.7.1 to 4.8.8. Please check your dependencies and test if your environment work properly with new package.
If you need additional help I am here for you.
Best Regards, Piotr
Doc answered 5 years ago
It's all right, I found the mistake and it was an odd figure added into my .js script. My apologies, it was my bad.
MDBootstrap staff pro premium priority commented 5 years ago
Great to hear that everything works now.
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- User: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.8.8
- Device: PC
- Browser: Firefox - Chrome
- OS: Windows 10 x64
- Provided sample code: No
- Provided link: Yes