Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > listbox values to be alligned.......

Reply
Thread Tools

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

 
 
raj
Guest
Posts: n/a
 
      01-19-2006
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..

 
Reply With Quote
 
 
 
 
mick white
Guest
Posts: n/a
 
      01-19-2006
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>
 
Reply With Quote
 
 
 
Reply

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
Listbox selection to populate another listbox? Chris Kettenbach ASP .Net 3 06-16-2005 09:19 PM
Listbox item added with client scripts not submitting with ASP:Listbox Simon Prince ASP .Net 2 10-19-2004 04:11 PM
How do I move all items in a listbox to another listbox kent ASP .Net 1 05-03-2004 12:17 AM
click listbox and refresh another listbox DC Gringo ASP .Net 0 04-06-2004 02:13 AM
Re: now desparate! - 1st listbox contents disappears when 2nd listbox appears? blenderdude ASP .Net 0 08-03-2003 10:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57