List Box Heading

Discussion in 'Javascript' started by jack-b@humlog.com, Feb 12, 2006.

  1. Guest

    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
     
    , Feb 12, 2006
    #1
    1. Advertising

  2. 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
     
    Janwillem Borleffs, Feb 12, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?SmltIEhlYXZleQ==?=

    DataGrid Heading

    =?Utf-8?B?SmltIEhlYXZleQ==?=, Dec 10, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    1,469
    Curt_C [MVP]
    Dec 10, 2004
  2. =?Utf-8?B?ZGVubmlzdDY4NQ==?=

    Format text as a heading

    =?Utf-8?B?ZGVubmlzdDY4NQ==?=, Nov 22, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    541
    Mark Wills
    Sep 14, 2006
  3. jack-e

    List Box Heading

    jack-e, Feb 12, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    490
    =?Utf-8?B?RFdT?=
    Feb 12, 2006
  4. dm1608
    Replies:
    1
    Views:
    1,616
    Eliyahu Goldin
    Feb 19, 2006
  5. Gnarlodious
    Replies:
    4
    Views:
    17,616
    elizas
    May 5, 2010
Loading...

Share This Page