jQuery获取select下拉框改变时option的值

$('.hotels').on("change", function(){
      console.log(this.value);
      console.log($(this).find(':selected').val()); 
})

猜你喜欢

转载自blog.csdn.net/weixin_39717076/article/details/83089758