Topic: How to append & hide an option from a select element?

VIS free asked 2 years ago


I have a few questions regarding to select element, would be good if these were included in the documentation so we wouldn't look for these:

  • How do I append an item to a select element
  • How do I hide (not delete, as I need to re-use the option) an option from the select element

Thanks


Kamila Pieńkowska staff answered 2 years ago


Here is a snippet showing how you can add or remove options. https://mdbootstrap.com/snippets/standard/kpienkowska/4238093

You can also disable options that you do not need for specific forms. https://mdbootstrap.com/docs/standard/forms/select/#section-disabled-options



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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 4.4.0
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No