Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Select not showing

Ohmer pro asked 6 years ago


I have moved to MDBPro from another framework, and my selects are not showing at all.  Just the label and no select button. Here is the info: My head: <link rel="stylesheet" href="/public/css/font-awesome.min.css"> <link href="/public/css/bootstrap.min.css" rel="stylesheet"/> <link href="/public/css/mdb.min.css" rel="stylesheet"> <link href="/public/css/style.css" rel="stylesheet"> My select: <select class="mdb-select" id="select"> <option disabled selected>-- Select Team --</option> <option>1</option> <option>2</option> </select>   My js includes: <script type="text/javascript" src="/public/js/jquery-3.2.1.min.js"></script> <script type="text/javascript" src="/public/js/popper.min.js"></script> <script type="text/javascript" src="/public/js/bootstrap.min.js"></script> <script type="text/javascript" src="/public/js/mdb.min.js"></script>  

Jakub Strebeyko staff answered 6 years ago


Hi there Subbre, Sorry to hear that. This thread is pretty much dead and regards jQuery version. Please consider starting up a new one with some details ticket while specifying an appropriate technology, being Angular. With Best Regards, Kuba

Subbre TV pro answered 6 years ago


It's not showing in my case aswell. Got mdb pro few days ago, everything that i tried yet works just fine but select with class mdb-select is not working. I have imported prokit with .forRoot() function so i guess i dont need separate import. Using angular 7.

Jakub Strebeyko staff answered 6 years ago


Hi there Ohmer, It is rather unusual. Are you sure you have initialized your select element in your .js input the way it's described in thematerial select documentation? With Best Regards, Kuba

Ohmer pro answered 6 years ago


Its not that the inputs are hidden, it is that the whole item doesnt exist in browser.

 
                    
                      

Jakub Strebeyko staff answered 6 years ago


Hi there Ohmer, Thanks for reaching out! Hiding select inputs is desired behavior, as it helps to bring around the material select appearances. Naturally, this might not be what you want for your project, but have no fear. If there are some other solutions you want to use (let's say some outside select elements), now you can decide about what you really need and leave out the rest. For more information please refer to our Gulp Tutorial. With Best Regards, Kuba

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: Yes
Tags