Fancy drop-downs

Hi everyone,

I remember seeing somewhere on the internet a small howto to create drop-down with fancy indentation in the drop-down options:

- Users     - me     - you -Groups     - them     - us

Unfortunatley I have been unable to find this howto again,and I have no idea how to do this on my own.

Does this ring a bellto anyone?

Thank you in advance,

Jd

<select>    <optgroup label="Users">      <option>me</option>      <option>you</option>    </optgroup>    <optgroup label="Groups">      ...    </optgroup> </select>

Jeremy

<select>    <optgroup label="Users">      <option>me</option>      <option>you</option>    </optgroup>    <optgroup label="Groups">      ...    </optgroup> </select>

You might want to look at option_groups_from_collection_for_select as well.

http://api.rubyonrails.com/classes/ActionView/Helpers/FormOptionsHelper.html#M000405

Cheers, Jord