源代码如下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Demo: Dijit Select using options</title>
<link rel="stylesheet" href="css/demo.css" media="screen">
<link rel="stylesheet" href="dijit/themes/claro/claro.css" media="screen">
</head>
<body class="claro">
<div style="width:540px;">
<h1 style="text-align: center;">Programmatic Example</h1>
<div style="width:33%;float: left;">
<h1>Select</h1>
<label for="stateSelect1">State:</label>
<div id="stateSelect1"></div>
</div>
<div style="width:33%;float: right;"><h1>Values:</h1>
<div><strong>value:</strong> <span id&