Can someone please post a sample template code for creating Optgroup like feature for a ComboBox?

Thanks.