0

Hello everybody. I have a question/problem.
I have a select tag with several options. Sometimes the text of the option becomes very large. So I tried something like this for example:

<select>
  <option>A Very Big <br/> sentence</option>
</select>

But it didn't work. What I was trying is to put the <br> between the option tags, so some of the options to be displayed in 2 lines.

Is that possible?

Thank you.

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by javaAddict
1

Doesn't seems to be possible with select & options. One of the way I seen suggested was with div and JavaScript

Votes + Comments
Thanks for the reply
0

Doesn't seems to be possible with select & options. One of the way I seen suggested was with div and JavaScript

Seems like it. After some search there doesn't seem to be a way to do it with conventional html or javascript.
Thanks for the reply.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.