[size=medium]
<script>
<div >
<select id="createYear" style="height: 23px">
<option value="" >全部</option>
</select>
</div>
$(function(){
var year=new Date().getFullYear();
$("select").append($("<option value="+year+">"+year+"</option><option value="+(year-1)+">"+(year-1)+"</option><option value="+(year-2)+">"+(year-2)+"</option>"));
})
</script>
[img]http://dl.iteye.com/upload/attachment/0080/8047/868f0a80-30b5-3ecf-82d1-449142b117da.bmp[/img]
[/size]
<script>
<div >
<select id="createYear" style="height: 23px">
<option value="" >全部</option>
</select>
</div>
$(function(){
var year=new Date().getFullYear();
$("select").append($("<option value="+year+">"+year+"</option><option value="+(year-1)+">"+(year-1)+"</option><option value="+(year-2)+">"+(year-2)+"</option>"));
})
</script>
[img]http://dl.iteye.com/upload/attachment/0080/8047/868f0a80-30b5-3ecf-82d1-449142b117da.bmp[/img]
[/size]