http://blog.csdn.net/wangjingjing1014/article/details/16885341
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<select class="easyui-combobox" id="cbYearContrast" name="select" panelHeight="auto" style=" 80px; padding-top:5px; margin-top:10px;">
</select>
</body>
<script type="text/javascript">
var currentYear = new Date().getFullYear();
var select = document.getElementById("cbYearContrast");
for (var i = 0; i <= 10; i++) {
var theOption = document.createElement("option");
theOption.innerHTML = currentYear-i + "年";
theOption.value = currentYear-i;
select.appendChild(theOption);
}
</script>
</html>
获取下拉菜单选中的值:var year = $('#cbYearContrast').combobox('getValue');