Topic: Material Select fields not showing up

Doc free asked 5 years ago


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(); });


Doc free 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 commented 5 years ago

Great to hear that everything works now.


MDBootstrap staff 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


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue

  • ForumUser: 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