使用 live 方法,可以給動態(tài)添加的元素加事件
$('#table-select').live("change",function(){
var year =? $('#table-select option:selected').val()
console.log(year)
})
使用 live 方法,可以給動態(tài)添加的元素加事件
$('#table-select').live("change",function(){
var year =? $('#table-select option:selected').val()
console.log(year)
})