1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE html 3 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 4 "xhtml1-strict.dtd"> 5 <html xmlns='http://www.w3.org/1999/xhtml'> 6 <head> 7 <title>NIST DOM HTML Test - OPTGROUP</title> 8 <script type='text/javascript' src='selfxhtml.js'></script><script charset='UTF-8' type='text/javascript' src='HTMLOptGroupElement01.js'></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head> 9 <body onload="loadComplete()"> 10 <form id="Form1" action="test.pl" method="post"> 11 <p> 12 <select name="select2"> 13 <optgroup label="Regular Employees"> 14 <option>EMP0001</option> 15 <option>EMP0002</option> 16 <option>EMP0003A</option> 17 </optgroup> 18 <optgroup disabled="disabled" label="Temporary Employees"> 19 <option>EMP0004</option> 20 <option>EMP0005</option> 21 </optgroup> 22 </select> 23 </p> 24 </form> 25 </body> 26 </html> 27 28