Results 1 to 2 of 2
  1. #1

    HTML Select Menu w/ Headings

    I know i have seen an html select menu that had headings and was categorized. It looked like this: http://thrifty.unrealwebdev.com/dropmenu.gif

    Any help would be appreciated.

    Thanks!

  2. #2
    That would be HTML's OPTGROUP element:

    Code:
    <select>
        <optgroup label="Category 1">
            <option>Option 1...</option>
            <option>Option 2...</option>
            <option>Option 3...</option>
        </optgroup>
        <optgroup label="Category 2">
            <option>Option 1...</option>
            <option>Option 2...</option>
            <option>Option 3...</option>
        </optgroup>
        <optgroup label="Category 3">
            <option>Option 1...</option>
            <option>Option 2...</option>
            <option>Option 3...</option>
        </optgroup>
    </select>
    Hope it helps.

Related Posts from theWHIR.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •