954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Break Tag in Option Tag

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
between the option tags, so some of the options to be displayed in 2 lines.

Is that possible?

Thank you.

javaAddict
Nearly a Senior Poster
Team Colleague
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
 

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

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 
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.

javaAddict
Nearly a Senior Poster
Team Colleague
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You