Select2 on change event is not working in Vuejs

前端 未结 4 600
野的像风
野的像风 2020-12-11 03:50

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

4条回答
  •  一整个雨季
    2020-12-11 04:30

    Try add v-on:change="onChange" in your select control

    HTML template

    
    

    "onChange" is the name of your method

    JavaScript

    methods: {
      onChange(e) {        
          alert("Change");   
      }
    }
    

提交回复
热议问题