We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22302
    • 42 Posts
    Hi guys,
    I just discovered the optgroup element here: http://www.seomoz.org/blog/5-html-elements-you-probably-never-use-but-perhaps-should and I tought it would be great to use it in the template selector.

    ie:
    <select>
      <optgroup label="Category1">
        <option value ="home">home</option>
        <option value ="blog">blog</option>
        <option value ="contact">contact</option>
      </optgroup>
      <optgroup label="Category2">
        <option value ="home">home</option>
        <option value ="blog">blog</option>
        <option value ="contact">contact</option>
      </optgroup>
    </select>
    
      [b]Benoit Deziel[b]
      • 22302
      • 42 Posts
      Ok maybe some visual examples is required (without and with css styling)
        [b]Benoit Deziel[b]
        • 25663 MODX Staff
        • 12,272 Posts
        Optgroups are great indeed. Styling support varies by browser, but I’m a fan of them when used properly as well.
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me