Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

grouping select options 2

Status
Not open for further replies.
They are achieved using the OPTGROUP tag - it is an inclusion into HTML 4.0. Example:
Code:
<form>
<select>
	<optgroup label="Grouping 1">
		<option value="0">Item 1</option>
		<option value="1">Item 2</option>
		<option value="2">Item 3</option>
	<optgroup label="Grouping 2">
		<option value="3">Item 4</option>
		<option value="4">Item 5</option>
		<option value="5">Item 6</option>
</select>
</form>

Hope this helps.

Pete.


Web Developer &amp; Aptrix / Lotus Workplace Web Content Management (LWWCM) Specialist
w: e: Pete.Raleigh(at)lclimited.co.uk
 
FYI - thread215-769111

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top