Elegant Classification in Dropdown Boxes

Elegant Classification in Dropdown Boxes

Dropdown boxes are part of any common webpage. When there are more number of values, then it would be harder to read and would be very unfriendly to the user at large.

One of my friend was asking some trick to workaround this issue and I was suggesting him some XmlHttpRequest and other trick to load it in piecemeal fashion. And accidentally, I discovered a nice trick in HTML called OPTGROUP.

India Pakistan Turkey Australia New Zealand

The elegance of this structure is that the Label Captions are skipped by the web browser automatically and you can apply different coloring for the group.

/* Migrated from namespace LavanyaDeepak — posted on June 30, 2005 */

One thought on “Elegant Classification in Dropdown Boxes”

  1. Some time before, I did need to buy a building for my organization but I didn’t have enough cash and couldn’t purchase something. Thank God my comrade adviced to try to take the business loans from trustworthy creditors. Thence, I acted so and was happy with my small business loan.

Leave a Reply

Your email address will not be published. Required fields are marked *