value值也是对应的年份。
------解决方案--------------------------------------------------------
- JScript code
var html = ""; for (var i = 2000; i < 2012; i++) { html += '<option value="' + i + '">' + i + '</option>'; } $("#Select1")(html);
var html = ""; for (var i = 2000; i < 2012; i++) { html += '<option value="' + i + '">' + i + '</option>'; } $("#Select1")(html);