Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Advice needed on Select Box option display...

Thread Tools

Advice needed on Select Box option display...

June Moore
Posts: n/a
I have a select box that has a fixed width. The fixed width is used to
ensure that the select box does not appear distorted on the form.

When the user selects an option, how do I show a tip for any titles
that are longer than the width of the select box, e.g. "Harry Potter
and the Prisoner of Azkaban"? If this is not possible, can anyone here
suggest ways that can make the longer titles visible to the user when
the select box is opened?

<select size="1" name="title_select" style="width=170px">
<option value="">Please select a film title</option>
<option value="A1">Ray</option>
<option value="A2">Harry Potter and the Prisoner of
<option value="A3">The Aviator</option>
<option value="A4">Harry Potter and the Chamber of
<option value="A5">Eternal Sunshine of the Spotless Mind</option>

Reply With Quote
Posts: n/a
You could do a fake wrap of your optioins.

First put a seperator option between every title:

<option value="">-----------------------</option>

then just split your long descriptions onto two or more lines.

<option value="A2">Harry Potter and the</option>

<option value="A2">Prisoner of Azkaban</option>

<option value="">-----------------------</option>

That's one way to try it.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
programmatically select an option in "select" box in html rvelosoo Javascript 1 08-13-2008 10:53 AM
Removing select option removes entire select Nick Spacek Javascript 1 06-21-2006 04:45 PM
modify the default option in a select changing another select WebRaster Javascript 1 10-26-2005 10:36 AM
Selection from One SELECT changes selected option of another SELECT? J. Hall HTML 2 04-21-2004 05:36 PM
select of select box will select multiple in another box palmiere Javascript 1 02-09-2004 01:11 PM