Topic: Is there a way to render HTML inside Select secondary text?

Jordan Mack pro asked 1 year ago

Expected behavior

I am looking to render an HTML "a" tag inside of mdb Select secondary text:

let op = new Option("Budget 123", "143");
op.setAttribute("data-mdb-secondary-text", "<a href="#">Update Budget</a>");
op.disabled = true;

Actual behavior

html is parsed as string

Resources (screenshots, code snippets etc.)

Kamila Pieńkowska staff answered 1 year ago

We do not support that feature.

If you need to custom solution you can use input with dropdown and put whatever you want there. But that is not a pre-made alternative.

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