How to insert a div in option, select?

0 like 0 dislike
5 views
Use nice-select.js but there is probably no such possibility.

I want the option to add buttons with styles...

How can I do this ?

Thank you!
by | 5 views

2 Answers

0 like 0 dislike
can the tag button?
by
0 like 0 dislike
You cannot insert a div in option.
Allowed content
Text, allowed escaped characters (e.g. é).
https://developer.mozilla.org/ru/docs/Web/HTML/Ele...

Perhaps use some kind of replacement to the standard select.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 20, 2019 by albertalexandrov
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Apr 13, 2019 by PHPjedi
110,608 questions
257,186 answers
0 comments
33,932 users