Jazzo.co.uk uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our Privacy Policy and our Terms & Condition.

HTML < optgroup>

query_builder | Christopher Pisani

The HTML element <optgroup> is used to group set of options in a drop-down list.

A simple example to show how it works

Available Attributes

Attribute Values Functionality
disabled Disables the entire group in the dropdown list
label text The title for the group shown in the dropdown list