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
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
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
3,329 posts since Dec 2007
Reputation Points: 1,014
Solved Threads: 448