mdb-select without initial selected


Topic: mdb-select without initial selected

rentrent pro asked 7 years ago

Hi, When no selection made I want mdb-select to show label text, but it automaticly selects first option even it does not have "selected" attribute. Also is there way to set placeholder for mdb-select as in bootstrap-select? I did not find anything about it in documentation

Mikołaj Smoleński staff answered 7 years ago

Hi, In our MDB Select You'll need to use first option as a main title of select with 'disabled' and 'selected' attributes. Placeholders are available only in inputs components. The same situation is in Bootstrap Select. Regards

rentrent pro commented 7 years ago

I bought pro package yesterday, already started to regret. 1. I don't understand why you made height of input and select different (I fixed it using custom css) 2. There should be an option to add placeholder to select elements. Here is how bootstrap-select provides it: Mustard Ketchup

rentrent pro commented 7 years ago

https://silviomoreto.github.io/bootstrap-select/examples/

Mikołaj Smoleński staff commented 7 years ago

All select options, methods and props are included in our documentation (https://mdbootstrap.com/javascript/material-select/), so I am surprised that You started to regret. Our mdb-select is a new component, made from basics. That's why there are some differences between it and other bootstrap standard components.

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
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No