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 */