jQuery get the selected dropdown value on change

后端 未结 6 1749
无人及你
无人及你 2021-01-17 17:51

I\'m trying to get the value of a dropdown on change (and then change the values in a second dropdown).

EDIT: Thanks for all the replies, i\'ve upda

6条回答
  •  不知归路
    2021-01-17 18:19

    $('.dropone').change(function() {
      var val = $(this).val(); 
    
      // OR
    
      var val = this.value;
    })
    

提交回复
热议问题