click event for option doesn't work in IE

前端 未结 7 2007
一整个雨季
一整个雨季 2020-12-16 21:11

I have a multiple select tag, and I need to write the function onclick of it\'s options, because I need to get the value of last clicked option, but when I wrote the followi

7条回答
  •  既然无缘
    2020-12-16 22:03

    $("#multiple_select").click(function(){
      alert($(this).children("option:selected").val());
    });
    

    should to the thing

提交回复
热议问题