If I understand your question, then you need to use some sort of monospace font like courrier for your select list. That way you can concactonate two values, pad the first value with trailing spaces.
Fritz the Blank
Main Topics
Browse All TopicsHi
On a html page while using the <SELECT>,<OPTION> tags how can I display more then one column.
for example:
Description1 code1
Description2 code2
Description3 code3
.
.
.
I do not mind concating 2 strings "Description1 + code1" but it must look like they are on other columns, I mean each field should start exactly in the same place as the one above him.
thanks
Asa.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I see, like this:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<FORM action="" method=POST id=form1 name=form1>
<select name="main" style="font-family:monospa
<option>Pat Rat</option>
<option>Bat Nat</option>
<option>Sat Mat</option>
</select>
</FORM>
</BODY>
</HTML>
Fritz the Blank
To handle it for variable width data it will need a re-write function that can be fired onLoad:
<script language="JavaScript">
<!--
var space = " ";
var colOffset = 25;
for (i=0; i<document.form1.main.opti
{
var holder = document.form1.main.option
var loopcnt=colOffset-holder[0
outstr=holder[0];
while (loopcnt>0)
{
outstr+=space;
loopcnt--;
}
outstr+=holder[1];
document.form1.main.option
}
}
//-->
</script>
Or something like that.
Cd&
Business Accounts
Answer for Membership
by: welsh_stewPosted on 2003-01-13 at 09:29:26ID: 7718617
each OPTION tag has the ability of having a "value" </OPTION>
selectedIn dex.value;
<SELECT name="select1">
eg <OPTION name="opt1" value="code1">Description1
so you could do away with the need for a 2nd combobox, which it sounds like you might need.
with the example i've given you can get the value of the OPTION by...
document.forms[0].select1.
hope that's what you meant...