listbox with 2 columns and a vertical bar - how to create it in HTML?

Z

zalek

Maybe someone can show me an example of a listbox with 2 columns and a
vertical bar created by HTML (JavaScript is OK).

Thanks,

Zalek
 
J

Jeff North

On Mon, 11 Aug 2008 17:40:42 -0700 (PDT), in comp.lang.javascript
zalek <[email protected]>
| Maybe someone can show me an example of a listbox with 2 columns and a
| vertical bar created by HTML (JavaScript is OK).
|
| Thanks,
|
| Zalek

<select name="lb" size="1" style="font-family: monospace">

<option>R1C1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|
R1C2</option>
<option>Row 2 Col1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| Row2
Col2</option>
<option>Row 3 Column 1 | Row 3 Colmn 2</option>
</select>
 
B

Bob Barrows [MVP]

Ed said:
Hmm. It wasn't clear in the OP but I'm guessing you said this because
you think the OP wants two columns with ONE scroll bar? Yes?
Yes. The OP after all does say "a listbox", so an example showing two
listboxes is probably not what the OP wants.
Jeff showed a kludge to accomplish this. Hopefully that will satisfy the
OP.
 
D

dorayme

"Bob Barrows said:
Was this a failure to understand, or were you making the subtle point that
it could not be done?

Looks like it was a too hasty response of mine and was a failure to take
the OP literally. I simply thought he meant to have a couple of lists
and to have some scrollbars and was not making any point beyond this.

(I am not capable of great subtlety, I am sort of Australian you see...)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top