html select optgroup
- <select id="manager" name="manager" onchange="document.getElementById('hierLabelDiv').style.display = this.options[this.selectedIndex].value=='Other' ? 'block' : 'none'; document.getElementById('ownMgrElm').disabled = this.selectedIndex == 0 ? 'true' : ''; if (this.selectedIndex == 0) document.getElementById('ownMgrElm').checked = ''">
- <option value="">--None--</option>
- <optgroup label="Standard User Fields">
- <option value="Manager">Manager</option>
- </optgroup>
- <optgroup label="Custom User Fields"></optgroup>
- <optgroup label="Other">
- <option value="Other">Create New Hierarchical Relationship Field</option>
- </optgroup>
- </select>