我无法在onchange select2上获得选定的值。
请帮助我。下面是我的代码。
<select class="form-control" data-plugin="select2" data-select2-id="2" tabindex="-1" aria-hidden="true" required="" id="txt_speciy" name="txt_speciy">
<script src="~/global/vendor/select2/select2.full.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
$('#txt_speciy').on("change", function (e) {
alert("qaead");
});