L
Laxmi
Hi,
I have a select list, which looks like this:
<select multiple size="8" name="SupervisorNames">
<option value="ADAMO,CLAUDIA">ADAMO,CLAUDIA bd2sk9n</option>
<option value="ABRAHAM,JEFFREY">ABRAHAM,JEFFREY
g060812</option></optgroup>
<option value="ACCELERATORS,IH">ACCELERATORS,IH b123456</option>
</select>
Each option in the list shows 2 things: a name and an ID. Since the
names are of different lengths, its not possible to line up the IDs
vertically. What I mean is, I would like the list to look like:
<select multiple size="8" name="SupervisorNames">
<option value="ADAMO,CLAUDIA">ADAMO,CLAUDIA bd2sk9n</option>
<option value="ABRAHAM,JEFFREY">ABRAHAM,JEFFREY
g060812</option></optgroup>
<option value="ACCELERATORS,IH">ACCELERATORS,IH b123456</option>
</select>
I have tried getting the length of the longest name, then appending
(max length - current name length) no. of spaces (i.e.:  to each
name, to achieve this. But somehow it does not work, and the IDs do
not line up vertically.
I must have this information in a select list, so something like a
table is not an alternative.
Any help will be much appreciated.
I have a select list, which looks like this:
<select multiple size="8" name="SupervisorNames">
<option value="ADAMO,CLAUDIA">ADAMO,CLAUDIA bd2sk9n</option>
<option value="ABRAHAM,JEFFREY">ABRAHAM,JEFFREY
g060812</option></optgroup>
<option value="ACCELERATORS,IH">ACCELERATORS,IH b123456</option>
</select>
Each option in the list shows 2 things: a name and an ID. Since the
names are of different lengths, its not possible to line up the IDs
vertically. What I mean is, I would like the list to look like:
<select multiple size="8" name="SupervisorNames">
<option value="ADAMO,CLAUDIA">ADAMO,CLAUDIA bd2sk9n</option>
<option value="ABRAHAM,JEFFREY">ABRAHAM,JEFFREY
g060812</option></optgroup>
<option value="ACCELERATORS,IH">ACCELERATORS,IH b123456</option>
</select>
I have tried getting the length of the longest name, then appending
(max length - current name length) no. of spaces (i.e.:  to each
name, to achieve this. But somehow it does not work, and the IDs do
not line up vertically.
I must have this information in a select list, so something like a
table is not an alternative.
Any help will be much appreciated.