Forum Moderators: open

Message Too Old, No Replies

Multiple lines for a select option - possible?

         

gnetcon

9:39 pm on Jan 5, 2009 (gmt 0)

10+ Year Member



It seems in my searches that it isn't possible to "wrap" select options. See the following:


<select size="6">
<option>1 - No Wrap</option>
<option>2 - Still no wrap</option>
<option>3 - wraps<br /> still wraps</option>
</select>

This will display:

1 - No Wrap
2 - Still no wrap
3 - wraps
still wraps

But there is only 3 options. When #3 is clicked, lines #3 and #4 become selected.

Again, I don't see that it is possible, but I just wanted to verify.

TIA!

tonynoriega

11:53 pm on Jan 5, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



lines 3 and 4 will both be highlighted becuase they are still one option.

is there a reason you need it wrapped and dont want line 4 to highlight?

try setting some CSS styles to the options. i think however if you set a background it will apply to all options.
just an idea.

gnetcon

1:43 pm on Jan 6, 2009 (gmt 0)

10+ Year Member



Everything I tried didn't work, so I ended up creating 2 lines, both using the same ID. It doesn't select all of them, but it's close enough to what I need to make it work.

Thanks!