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: mdb-select without initial selected

rentrent pro asked 6 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 6 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 6 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 6 years ago

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

Mikołaj Smoleński staff commented 6 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

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