http://blog.csdn.net/wangjingjing1014/article/details/16885341
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title> Untitled Document </title>
<body>
<select class= "Easyui-combobox" id= "Cbyearcontrast" name= "select" panelheight= "Auto" style= "width: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 <=; i++) {
var theoption = document.createelement ("option");
theoption.innerhtml = Currentyear-i + "year";
Theoption.value = Currentyear-i;
Select.appendchild (theoption);
}
</script>
Gets the value of the drop-down menu selected: var year = $ (' #cbYearContrast '). ComboBox (' GetValue ');
JQuery Easyui drop-down menu gets the date, the highest year is the current year, the lowest year is the current year, and pushes forward 10