Select2 on change event is not working in Vuejs
问题 I was working with select2 in vuejs , I found vuejs is not working with jquery select2 as vuejs is working with navite html. I am using this code Vue.directive('select', { twoWay: true, bind: function () { $(this.el).select2() .on("select2:select", function(e) { this.set($(this.el).val()); }.bind(this)); }, update: function(nv, ov) { $(this.el).trigger("change"); } }); var app = new Vue({ el: '#app', data: { supplier_id: "niklesh" } }) $('#supplier_id').select2({}); <script src="https://cdnjs