By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,045 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,045 IT Pros & Developers. It's quick & easy.

listbox values to be alligned.......

P: n/a
raj
hi,
my list box in the html page contains list box with values. these
values inturn have subvalues and I have to allign the child values to
right so that i can know the parent of the values. how can I do that.
list values should look something like this...
(suppose u have a list box with the state names in usa. the cities of
the states would be the child elements and the state names would be the
parent values)

ALABAMA
Abbeville
Huntsville
Birmingham
Montgomery
......
ALASKA
Anchorage
Tucson
.....
........
.........
.........

Urgent can someone help pls. I can use java script or any java
technology

thanks..

Jan 19 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
raj wrote:
hi,
my list box in the html page contains list box with values. these
values inturn have subvalues and I have to allign the child values to
right so that i can know the parent of the values. how can I do that.
list values should look something like this...
(suppose u have a list box with the state names in usa. the cities of
the states would be the child elements and the state names would be the
parent values)

ALABAMA
Abbeville
Huntsville
Birmingham
Montgomery
......
ALASKA
Anchorage
Tucson
.....


<SELECT name="carCos">
<OPTGROUP label="American">
<OPTION value="General Motors">General Motors</OPTION>
<OPTION value="Ford">Ford Motor Company</OPTION>
<OPTION value="Chrysler">DaimlerChrysler</OPTION>
</OPTGROUP>
<OPTGROUP label="Japanese">
<OPTION value="Toyota">Toyota</OPTION>
<OPTION value="Honda">Honda</OPTION>
<OPTION value="Nissan">Nissan</OPTION>
</OPTGROUP>
</SELECT>
Jan 19 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.