Answers for "select2 on change event"

2

select2.org events

$('#mySelect2').on('select2:select', function (e) {
    var data = e.params.data;
    console.log(data);
});
Posted by: Guest on July-20-2020
0

select2 on change

<script>
  	$('#exampleSelect2').select2().on('change', function(){
		// ...
	});
</script>
Posted by: Guest on October-23-2021

Browse Popular Code Answers by Language