Get value of select option immediately jquery

后端 未结 4 1675
暗喜
暗喜 2021-01-29 02:16

I have a simple dropdown and want to get the specific value of an option if the user changes the dropdown selection, but without having him to push a submit button. Is this poss

4条回答
  •  忘掉有多难
    2021-01-29 02:43

    its very simple.. try this

    $('#BezirksAuswahl').change(function(){
            var selected_value = $(this).val();
    });
    

提交回复
热议问题