Topic: MDB Select: data-secondary-text not displaying.

dncotterill free asked 4 years ago

The data-secondary-text does not display on the option in a mdb-select.

I've tried copying the example from the documentation and the mdb-select itself works.

<select class="md-form mdb-select initialized" searchable="Search here...">
    <option selected="selected" value="0" data-secondary-text="">Select an asset...</option>
    <option value="1" data-secondary-text="Dell · MS116-BK">00001 - Optical Mouse</option>
    <option value="2" data-secondary-text="Dell · Latitude 3500 · i5 8GB RAM">00002 - Laptop</option>
    <option value="3" data-secondary-text="BenQ · GL2450">00003 - 24" Monitor</option>
    <option value="4" data-secondary-text="Samsung · Tab 3">00004 - Tablet</option>
    <option value="5" data-secondary-text="Samsung · Tab 3">00005 - Tablet</option>
    <option value="6" data-secondary-text="Samsung · Tab 3">00006 - Tablet</option>
    <option value="7" data-secondary-text="">00007 - Patch Lead 0.5m</option>

Mateusz Łubianka staff answered 4 years ago

Hi @dncotterill,

I created a snippet with your code: I can see secondary text.


dncotterill free commented 4 years ago

Is it possible to find out what version the data-secondary-text was added?

Mateusz Łubianka staff commented 4 years ago

I don't quite understand. Can you explain what do you want to do? I will try to help you.


Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.16
  • Device: Dell XPS 15
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No