Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > List Box Heading

Reply
Thread Tools

List Box Heading

 
 
jack-b@humlog.com
Guest
Posts: n/a
 
      02-12-2006
Hello,

How do I insert non-selectable headings into a list box?

e.g. if i had a list box displaying cities around the world - how could
i insert the country's name above each goup of cities

Australia (heading)
Sydney
Melbourne
New Zealand (heading)
Auckland
Wellington

Thanks!

Jack

 
Reply With Quote
 
 
 
 
Janwillem Borleffs
Guest
Posts: n/a
 
      02-12-2006
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> How do I insert non-selectable headings into a list box?
>


<select>
<optgroup label="Australia">
<option>Sydney</option>
<option>Melbourne</option>
</optgroup>
<optgroup label="New Zealand">
<option>Auckland</option>
<option>Wellington</option>
</optgroup>
</select>


JW


 
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
div box questions; float text around a box, fit box to image size Gnarlodious HTML 4 05-05-2010 11:30 AM
Format text as a heading =?Utf-8?B?ZGVubmlzdDY4NQ==?= ASP .Net 4 09-14-2006 12:33 PM
List Box Heading jack-e ASP .Net 1 02-12-2006 09:36 PM
populate one list box with selected values from another list box steven.cooper@infocision.com ASP .Net 1 03-12-2005 11:29 PM
DataGrid Heading =?Utf-8?B?SmltIEhlYXZleQ==?= ASP .Net 3 12-10-2004 08:23 PM



Advertisments