使用 live 方法,可以给动态添加的元素加事件
$('#table-select').live("change",function(){
var year = $('#table-select option:selected').val()
console.log(year)
})
使用 live 方法,可以给动态添加的元素加事件
$('#table-select').live("change",function(){
var year = $('#table-select option:selected').val()
console.log(year)
})